File: emacsen-startup

package info (click to toggle)
haskell-mode 2.7.0-2
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 504 kB
  • ctags: 395
  • sloc: lisp: 5,431; haskell: 134; sh: 32; makefile: 2
file content (23 lines) | stat: -rw-r--r-- 877 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
;; 
;; /etc/emacs/site-start.d/50haskell-mode.el
;;

(debian-pkg-add-load-path-item "/usr/share/emacs/site-lisp/haskell-mode")
(load "haskell-site-file")

(setq interpreter-mode-alist
      (append interpreter-mode-alist
              '(("^#!.*runhugs" . haskell-mode)
                ("^#!.*runghc" . haskell-mode)
                ("^#!.*runhaskell" . haskell-mode))))

(add-hook 'haskell-mode-hook 'turn-on-font-lock)
(add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan)
(if (not (string-match "Lucid\\|XEmacs" emacs-version))
    (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode))
(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation)

;(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)
;(add-hook 'haskell-mode-hook 'turn-on-haskell-ghci)