diff options
author | Tom Willemse | 2014-01-19 23:26:17 +0100 |
---|---|---|
committer | Tom Willemse | 2014-01-19 23:26:17 +0100 |
commit | a7e7674a901da7f851a8160cee3f4f1dc22100a9 (patch) | |
tree | 75489bd8e34619b710ab292bdc75d22ce23544ed /.emacs.d | |
parent | a2483c1cde6b69623ccc52323447b99fbf5f573e (diff) | |
download | emacs-a7e7674a901da7f851a8160cee3f4f1dc22100a9.tar.gz emacs-a7e7674a901da7f851a8160cee3f4f1dc22100a9.zip |
Set local dictionary to English for git commits
Diffstat (limited to '.emacs.d')
-rw-r--r-- | .emacs.d/init.el | 7 |
1 files changed, 6 insertions, 1 deletions
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) |