From e9a992990a597ae71db44ae715d531ae68093ede Mon Sep 17 00:00:00 2001 From: Franck Cuny Date: Fri, 29 Jan 2016 15:48:42 -0800 Subject: [emacs] add configuration for Haskell. --- emacs.d/inits/90_lang-haskell.el | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 emacs.d/inits/90_lang-haskell.el diff --git a/emacs.d/inits/90_lang-haskell.el b/emacs.d/inits/90_lang-haskell.el new file mode 100644 index 0000000..be245f3 --- /dev/null +++ b/emacs.d/inits/90_lang-haskell.el @@ -0,0 +1,22 @@ +(use-package haskell-mode + :ensure t + :init + (progn + (add-hook 'haskell-mode-hook 'turn-on-haskell-doc-mode) + (add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent) + (add-hook 'haskell-mode-hook 'interactive-haskell-mode) + ) + (setq haskell-stylish-on-save t)) + +(use-package ghc + :ensure t + :config + (add-hook 'haskell-mode-hook 'ghc-init) + :bind (("C-c C-t" . ghc-show-type) + ("C-c t" . ghc-show-type))) + +(use-package hindent + :ensure t + :config + (add-hook 'haskell-mode-hook #'hindent-mode) + (setq hindent-style "gibiansky")) -- cgit 1.4.1