;; On the computers in the IFW building the Haskell mode for emacs (or xemacs) ;; is installed in the directory ;; /usr/pack/haskell-mode-2.1-rg/lib/emacs/ ;; ;; For activating it in emacs you have to copy the following lines to ;; you .emacs file in your home directory. If you do not have a .emacs file, ;; just use this file. ;; ;; If you are using the Debian distribution you can install globally ;; the packages for hugs and the haskell mode. ;; For running hugs in emacs, add ;; (add-hook 'haskell-mode-hook 'turn-on-haskell-hugs) ;; to your .emacs file. ;; More information about the Emacs Haskell mode can be found at the ;; web page ;; http://www.haskell.org/haskell-mode/ ;; Haskell mode ====>> (setq load-path (cons "/usr/pack/haskell-mode-2.1-rg/lib/emacs/" load-path)) (setq auto-mode-alist (append auto-mode-alist '(("\\.[hg]s$" . haskell-mode) ("\\.hi$" . haskell-mode) ("\\.l[hg]s$" . literate-haskell-mode)))) (autoload 'haskell-mode "haskell-mode" "Major mode for editing Haskell scripts." t) (autoload 'literate-haskell-mode "haskell-mode" "Major mode for editing literate Haskell scripts." t) (add-hook 'haskell-mode-hook 'turn-on-haskell-font-lock) (add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan) (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode) ;(add-hook 'haskell-mode-hook 'turn-on-haskell-indent) (add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent) (add-hook 'haskell-mode-hook 'turn-on-haskell-hugs) ;; <<==== Haskell mode ;; Useful key bindings: ;; * use \C-c\C-s to start Hugs ;; * use \C-c\C-l to load the active buffer into Hugs ;; * use \C-c\C-r for reloading