summaryrefslogtreecommitdiffstats
path: root/emacs
diff options
context:
space:
mode:
authorGravatar Tom Willemse2015-06-21 12:34:34 +0200
committerGravatar Tom Willemse2015-06-21 12:34:34 +0200
commit2ffb29b718115f8f74460d24ae8b89c1a825b7d4 (patch)
treed920a955e218e45eb54c407a6665f5bc0bdd25b0 /emacs
parent56c22f90efef42a58e31b574d188e1c27cd6b860 (diff)
downloaddotfiles-2ffb29b718115f8f74460d24ae8b89c1a825b7d4.tar.gz
dotfiles-2ffb29b718115f8f74460d24ae8b89c1a825b7d4.zip
Use hunspell for spell-checking when available
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/init.el5
1 files changed, 5 insertions, 0 deletions
diff --git a/emacs/.emacs.d/init.el b/emacs/.emacs.d/init.el
index 8a0549d..0272234 100644
--- a/emacs/.emacs.d/init.el
+++ b/emacs/.emacs.d/init.el
@@ -1533,6 +1533,11 @@ from myaethon2.core.decorators import (
;; (setq special-display-buffer-names
;; '(("*eshell*" (unsplittable . t) (buffer-predicate . my-special-buffer-predicate))))
+(if (not (executable-find "hunspell"))
+ (warn "Hunspell is not installed, can't use it")
+ (setq-default ispell-program-name "hunspell")
+ (setq ispell-really-hunspell t))
+
;;;; End
(provide 'init)