Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: fef999611e
Fetching contributors…

Cannot retrieve contributors at this time

19 lines (15 sloc) 0.755 kB
(require 'haskell-mode )
(add-to-list 'auto-mode-alist '("\.hs$" . haskell-mode))
(add-to-list 'auto-mode-alist '("\\.lhs$" . literate-haskell-mode))
(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
(progn
(define-key haskell-mode-map "\"" 'electric-pair)
(define-key haskell-mode-map "\'" 'electric-pair)
(define-key haskell-mode-map "(" 'electric-pair)
(define-key haskell-mode-map "[" 'electric-pair)
(define-key haskell-mode-map "{" 'electric-pair)
))
Jump to Line
Something went wrong with that request. Please try again.