From dbae14370b932073c7328d197e75e6ec2607e572 Mon Sep 17 00:00:00 2001 From: Ivan Malison Date: Tue, 13 Sep 2016 02:51:21 -0700 Subject: [PATCH] Beef up haskell config --- dotfiles/emacs.d/README.org | 26 +++++++++++++++++++++++--- 1 file changed, 23 insertions(+), 3 deletions(-) diff --git a/dotfiles/emacs.d/README.org b/dotfiles/emacs.d/README.org index 56550475..058b6da5 100644 --- a/dotfiles/emacs.d/README.org +++ b/dotfiles/emacs.d/README.org @@ -2287,9 +2287,29 @@ The following is taken from [[https://github.com/syl20bnr/spacemacs/blob/a650877 :commands haskell-mode :config (progn - (add-hook 'haskell-mode-hook 'turn-on-haskell-indent))) -***** Scion -(use-package scion) + (add-hook 'haskell-mode-hook 'turn-on-haskell-indent) + (setq haskell-tags-on-save t))) +#+END_SRC +***** hindent +#+BEGIN_SRC emacs-lisp +(use-package hindent + :after haskell-mode + :config + (add-hook 'haskell-mode-hook 'hindent-mode)) +#+END_SRC +***** ghc-mod +#+BEGIN_SRC emacs-lisp +(use-package ghc + :after haskell-mode + :config + (add-hook 'haskell-mode-hook 'ghci-nit)) +#+END_SRC +***** company-ghc +#+BEGIN_SRC emacs-lisp +(use-package company-ghc + :after ghc + :config + (add-to-list 'company-backend 'company-ghc)) #+END_SRC *** Data/Config/Protocol **** thrift