From 2ffb29b718115f8f74460d24ae8b89c1a825b7d4 Mon Sep 17 00:00:00 2001 From: Tom Willemse Date: Sun, 21 Jun 2015 12:34:34 +0200 Subject: Use hunspell for spell-checking when available --- emacs/.emacs.d/init.el | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'emacs') 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) -- cgit v1.2.3-54-g00ecf