summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-12-17 01:11:33 +0100
committerGravatar Tom Willemse2015-12-17 01:11:33 +0100
commit7fde32a3c506921bb3162bf687e659461b2d200e (patch)
treeb7a2ebe96c87aec967260dcd82caeda05e64244e /emacs
parent9393cae50dce9b34e57aa0725075ae6cd801c7ff (diff)
downloaddotfiles-7fde32a3c506921bb3162bf687e659461b2d200e.tar.gz
dotfiles-7fde32a3c506921bb3162bf687e659461b2d200e.zip
Simplify haskell-mode-hook
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.el6
1 files changed, 1 insertions, 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)