From a9253bc96748e72df511711f37ef1e283a3b847e Mon Sep 17 00:00:00 2001 From: Bozhidar Batsov Date: Sun, 9 Dec 2012 00:25:58 +0200 Subject: [PATCH] enabled flyspell only is aspell is available --- prelude/prelude-editor.el | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/prelude/prelude-editor.el b/prelude/prelude-editor.el index a2f8b43..266fd26 100644 --- a/prelude/prelude-editor.el +++ b/prelude/prelude-editor.el @@ -198,8 +198,9 @@ ispell-extra-args '("--sug-mode=ultra")) (autoload 'flyspell-mode "flyspell" "On-the-fly spelling checker." t) -(add-hook 'message-mode-hook 'flyspell-mode) -(add-hook 'text-mode-hook 'flyspell-mode) +(when (executable-find ispell-program-name) + (add-hook 'message-mode-hook 'flyspell-mode) + (add-hook 'text-mode-hook 'flyspell-mode)) ;; enable narrowing commands (put 'narrow-to-region 'disabled nil)