summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFranck Cuny <franckcuny@gmail.com>2016-01-29 15:48:42 -0800
committerFranck Cuny <franckcuny@gmail.com>2016-01-29 15:48:42 -0800
commite9a992990a597ae71db44ae715d531ae68093ede (patch)
tree811827429f496327f60a5f65fb2521864183fb77
parent[emacs] BUILD files are python files. (diff)
downloademacs.d-e9a992990a597ae71db44ae715d531ae68093ede.tar.gz
[emacs] add configuration for Haskell.
-rw-r--r--emacs.d/inits/90_lang-haskell.el22
1 files changed, 22 insertions, 0 deletions
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"))