Simplify haskell-mode-hook

This commit is contained in:
Tom Willemse 2015-12-17 01:11:33 +01:00
parent 9393cae50d
commit 7fde32a3c5

View file

@ -148,10 +148,6 @@ MODE1 is enabled and vice-versa."
"Set the `disabled' property for each item in FUNCTIONS to nil." "Set the `disabled' property for each item in FUNCTIONS to nil."
(mapc #'(lambda (f) (put f 'disabled nil)) functions)) (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 () (defun indent-defun ()
"Indent the current defun." "Indent the current defun."
(interactive) (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 'git-commit-mode-hook #'oni:set-ispell-local-en-dict)
(add-hook 'gnus-exit-group-hook 'oni:update-mailcount) (add-hook 'gnus-exit-group-hook 'oni:update-mailcount)
(add-hook 'gnus-exit-gnus-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 'outline-minor-mode-hook #'oni:set-tab-maybe-toggle-outline)
(add-hook 'scheme-mode-hook (lambda () (setq ac-sources '(ac-source-geiser)))) (add-hook 'scheme-mode-hook (lambda () (setq ac-sources '(ac-source-geiser))))
(add-hook 'slime-mode-hook #'set-up-slime-ac) (add-hook 'slime-mode-hook #'set-up-slime-ac)