freebsd-ports/lang/haskell-mode.el/pkg-message
Oliver Braun 4bb415d6d0 Add haskell-mode.el 1.44, an Emacs lisp mode for editing haskell programs.
PR:		ports/63813
Submitted by:	Josh Elsasser <jre@vineyard.net>
2004-03-06 21:53:20 +00:00

24 lines
956 B
Plaintext

To use haskell-mode in Emacs, add the following lines to your ~/.emacs:
(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 the following lines according to which modules you want to use:
(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)
Note that the two indentation modules are mutually exclusive - add at
most one.