summaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init.el
diff options
context:
space:
mode:
Diffstat (limited to 'emacs/.emacs.d/init.el')
-rw-r--r--emacs/.emacs.d/init.el9
1 files changed, 4 insertions, 5 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index a4d058a..87182fe 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -141,10 +141,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:set-ispell-local-en-dict ()
- "Set `ispell-local-dictionary' to en."
- (setq ispell-local-dictionary "en_US"))
-
(defun oni:set-keys-for-dired ()
"Set some keybindings for `dired'."
(local-set-key (kbd "E") #'wdired-change-to-wdired-mode))
@@ -681,7 +677,10 @@ If no direction is given, don't split."
(add-hook 'css-mode-hook #'rainbow-mode)
(add-hook 'diary-display-hook 'diary-fancy-display)
-(add-hook 'git-commit-mode-hook #'oni:set-ispell-local-en-dict)
+
+;; Make sure git commit messages are always checked in english.
+(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 'turn-on-haskell-indentation)