Created
July 18, 2014 02:13
-
-
Save cosmo0920/664cca5915fb01244016 to your computer and use it in GitHub Desktop.
haskell-mode-setting.el
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
;;Haskell-mode | |
(autoload 'haskell-mode-autoloads "haskell-mode-autoloads" "haskell-mode autoload." t) | |
(eval-after-load "haskell-mode" | |
'(progn | |
(add-hook 'haskell-mode-hook 'haskell-hook) | |
)) | |
(defun haskell-hook () | |
(turn-on-haskell-simple-indent) | |
(turn-on-haskell-indent) | |
(turn-on-haskell-indentation) | |
(turn-on-haskell-doc) | |
(turn-on-haskell-indentdecl-scan) | |
(autoload 'ghc-init "ghc" nil t) | |
(add-hook 'haskell-mode-hook | |
(lambda () (ghc-init))) | |
(add-to-list 'ac-sources 'ac-source-ghc-mod) | |
) | |
;; Customization | |
(custom-set-variables | |
;; Use notify.el (if you have it installed) at the end of running | |
;; Cabal commands or generally things worth notifying. | |
'(haskell-notify-p t) | |
;; To enable tags generation on save. | |
'(haskell-tags-on-save t) | |
;; To enable stylish on save. | |
'(haskell-stylish-on-save t)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment