Skip to content

Instantly share code, notes, and snippets.

@cosmo0920
Created July 18, 2014 02:13
Show Gist options
  • Save cosmo0920/664cca5915fb01244016 to your computer and use it in GitHub Desktop.
Save cosmo0920/664cca5915fb01244016 to your computer and use it in GitHub Desktop.
haskell-mode-setting.el
;;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