From d56d3470f5381abdeeca754e14fac3efebe6dbdb Mon Sep 17 00:00:00 2001 From: Mitch Tishmack Date: Sun, 1 Mar 2015 00:42:55 -0600 Subject: [PATCH] Minimally useful haskell-mode. --- emacs/.emacs.d/emacs.org | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/emacs/.emacs.d/emacs.org b/emacs/.emacs.d/emacs.org index 5f73bd9..e88b260 100644 --- a/emacs/.emacs.d/emacs.org +++ b/emacs/.emacs.d/emacs.org @@ -858,16 +858,34 @@ Make it even easier with hints like intellisense. Need to make haskell source be all pretty. #+BEGIN_SRC emacs-lisp - (use-package haskell-mode :defer t) + (use-package haskell-mode + :ensure t + :config + (progn + (use-package hindent + :ensure t + :config (progn + (add-hook 'haskell-mode-hook #'hindent-mode) + ) + ) + (use-package flycheck-haskell :ensure t) + (use-package flycheck-hdevtools + :ensure t + :defer t + :config (progn + (add-hook 'haskell-mode-hook 'flycheck-mode) + ) + ) + (add-hook 'haskell-mode-hook 'interactive-haskell-mode) + (add-hook 'haskell-mode-hook 'turn-on-haskell-indent) + (add-hook 'haskell-mode-hook 'turn-on-haskell-simple-indent) + (customize-set-variable 'haskell-program-name "ghci") + (add-to-list 'completion-ignored-extensions ".hi") + (customize-set-variable 'haskell-font-lock-symbols t) + ) + ) #+END_SRC -*** flycheck-haskell - -And make flycheck whine when we effed something up. - -#+BEGIN_SRC emacs-lisp - (use-package flycheck-haskell :defer t) -#+END_SRC * mode related *** common defaults