~ubuntu-branches/ubuntu/hardy/haskell-mode/hardy

« back to all changes in this revision

Viewing changes to debian/50haskell-mode.el~

  • Committer: Bazaar Package Importer
  • Author(s): Petr Rockai
  • Date: 2007-12-06 01:02:06 UTC
  • mfrom: (1.2.3 upstream)
  • Revision ID: james.westby@ubuntu.com-20071206010206-amqror2nijod4wos
Tags: 2.3-1
* New upstream release (closes: #443400, #448658, #411955),
* re-debianized, using cdbs and debhelper,
* enabling the byte-compile of emacs-lisp sources (closes:  #408260),
* new maintainer, keeping Isaac as co-maintainer.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
;; 
2
 
;; /etc/emacs/site-start.d/50haskell-mode.el
3
 
;;
4
 
 
5
 
(setq auto-mode-alist
6
 
      (append auto-mode-alist
7
 
              '(("\\.[hg]s$"  . haskell-mode)
8
 
                ("\\.hi$"     . haskell-mode)
9
 
                ("\\.l[hg]s$" . literate-haskell-mode))))
10
 
 
11
 
(setq interpreter-mode-alist
12
 
      (append interpreter-mode-alist
13
 
              '(("^#!.*runhugs" . haskell-mode))))
14
 
 
15
 
(autoload 'haskell-mode "haskell-mode"
16
 
  "Major mode for editing Haskell scripts." t)
17
 
(autoload 'literate-haskell-mode "haskell-mode"
18
 
  "Major mode for editing literate Haskell scripts." t)
19
 
(autoload 'turn-on-haskell-ghci "haskell-ghci"
20
 
  "Turn on interaction with a GHC interpreter." t)
21
 
 
22
 
(add-hook 'haskell-mode-hook 'turn-on-haskell-font-lock)
23
 
(add-hook 'haskell-mode-hook 'turn-on-haskell-decl-scan)
24
 
(if (not (string-match "Lucid\\|XEmacs" emacs-version))
25
 
    (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode))
26
 
(add-hook 'haskell-mode-hook 'turn-on-haskell-indent)
27
 
;(add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent)
28
 
;(add-hook 'haskell-mode-hook 'turn-on-haskell-hugs)
29
 
;(add-hook 'haskell-mode-hook 'turn-on-haskell-ghci)
30
 
(debian-pkg-add-load-path-item "/usr/share/emacs/site-lisp/haskell-mode")