From 7fde32a3c506921bb3162bf687e659461b2d200e Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Thu, 17 Dec 2015 01:11:33 +0100 Subject: [PATCH] Simplify haskell-mode-hook --- emacs/.emacs.d/init.el | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el index 8f90dc0..09fdbe0 100644 --- a/emacs/.emacs.d/init.el +++ b/emacs/.emacs.d/init.el @@ -148,10 +148,6 @@ MODE1 is enabled and vice-versa." "Set the `disabled' property for each item in FUNCTIONS to nil." (mapc #'(lambda (f) (put f 'disabled nil)) functions)) -(defun oni:haskell-mode-func () - "Function for `haskell-mode-hook'." - (turn-on-haskell-indentation)) - (defun indent-defun () "Indent the current defun." (interactive) @@ -1010,7 +1006,7 @@ If no direction is given, don't split." (add-hook 'git-commit-mode-hook #'oni:set-ispell-local-en-dict) (add-hook 'gnus-exit-group-hook 'oni:update-mailcount) (add-hook 'gnus-exit-gnus-hook 'oni:update-mailcount) -(add-hook 'haskell-mode-hook 'oni:haskell-mode-func) +(add-hook 'haskell-mode-hook 'turn-on-haskell-indentation) (add-hook 'outline-minor-mode-hook #'oni:set-tab-maybe-toggle-outline) (add-hook 'scheme-mode-hook (lambda () (setq ac-sources '(ac-source-geiser)))) (add-hook 'slime-mode-hook #'set-up-slime-ac)