From 4a30327944eed71d936836d05c665aa58afad85b Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Thu, 16 Jul 2015 20:05:06 +0200 Subject: Tweaks to haskell-mode --- .emacs | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/.emacs b/.emacs index d7de207..c35c552 100644 --- a/.emacs +++ b/.emacs @@ -66,9 +66,17 @@ Return a list of installed packages or nil for every skipped package." kept-old-versions 2 version-control t) +(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation) +(eval-after-load "haskell-mode" + '(progn + (define-key haskell-mode-map (kbd "C-,") 'haskell-move-nested-lift) + (define-key haskell-mode-map (kbd "C-.") 'haskell-move-nested-right))) + (custom-set-variables '(haskell-font-lock-symbols t)) -(custom-set-faces - '(font-lock-type-face ((t (:foreground "PaleGreen" :weight bold)))) - '(font-lock-function-face ((t (:foreground "LightSkyBlue" :weight bold)))) - ) +(add-hook 'haskell-mode-hook + (custom-set-faces + '(font-lock-type-face ((t (:foreground "PaleGreen" :weight bold)))) + '(font-lock-function-face ((t (:foreground "LightSkyBlue" :weight bold)))) + ) + ) -- cgit v1.2.3