Skip to content
Browse files

Merge pull request #153 from jasonblewis/v2

check that ispell is actually available before adding the hook for flyspell
  • Loading branch information...
2 parents f876cef + 0c59cdb commit a908ed25f159206350f9af968916ad9de23d6ea0 @technomancy committed Oct 25, 2012
Showing with 8 additions and 1 deletion.
  1. +8 −1 starter-kit-misc.el
View
9 starter-kit-misc.el
@@ -110,7 +110,14 @@ comment as a filename."
(set-default 'imenu-auto-rescan t)
(add-hook 'text-mode-hook 'turn-on-auto-fill)
-(add-hook 'text-mode-hook 'turn-on-flyspell)
+;; (when (executable-find ispell-program-name)
+;; (add-hook 'text-mode-hook 'turn-on-flyspell))
+
+(eval-after-load "ispell"
+ '(when (executable-find ispell-program-name)
+ (add-hook 'text-mode-hook 'turn-on-flyspell)))
+
+
(defalias 'yes-or-no-p 'y-or-n-p)
(defalias 'auto-tail-revert-mode 'tail-mode)

0 comments on commit a908ed2

Please sign in to comment.
Something went wrong with that request. Please try again.