freebsd-ports/lang/haskell-mode.el/pkg-message
Andrey Slusar ee7b1b4270 - Update to 2.4
- Makefile cleanup
- Update pkg-message.

PR:		ports/120279
Submitted by:	Felippe de Meirelles Motta <lippemail@gmail.com>
Approved by:	Hirohisa Yamaguchi (maintainer)
2008-02-05 04:57:09 +00:00

24 lines
999 B
Text

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-decl-scan)
(add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode)
(add-hook 'haskell-mode-hook 'turn-on-haskell-ghci)
(add-hook 'haskell-mode-hook 'turn-on-haskell-hugs)
(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-font-lock)
Note that the two indentation modules are mutually exclusive - add at
most one.