From a7e7674a901da7f851a8160cee3f4f1dc22100a9 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 19 Jan 2014 23:26:17 +0100 Subject: Set local dictionary to English for git commits --- .emacs.d/init.el | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.emacs.d/init.el b/.emacs.d/init.el index c992b86..4362237 100644 --- a/.emacs.d/init.el +++ b/.emacs.d/init.el @@ -638,8 +638,12 @@ insert at the end of the region and at the beginning." ("sqrt" . ?√)))))) +(defun oni:set-ispell-local-en-dict () + "Set `ispell-local-dictionary' to en." + (setq ispell-local-dictionary "en")) + (defun oni:set-keys-for-dired () - "Set somee keybindings for `dired'." + "Set some keybindings for `dired'." (local-set-key (kbd "E") #'wdired-change-to-wdired-mode)) (defun oni:set-keys-for-eshell () @@ -1212,6 +1216,7 @@ If no direction is given, don't split." (add-hook 'before-save-hook 'oni:before-save-func) (add-hook 'comint-mode-hook #'oni:turn-on-compilation-shell-for-pony) (add-hook 'diary-display-hook 'oni:diary-display-func) +(add-hook 'git-commit-mode-hook #'oni:set-ispell-local-en-dict) (add-hook 'haskell-mode-hook 'oni:haskell-mode-func) (add-hook 'java-mode-hook 'oni:java-mode-func) (add-hook 'org-mode-hook #'yas-minor-mode) -- cgit v1.2.3-54-g00ecf