Skip to content

Commit

Permalink
check that ispell is actually available before adding the hook for
Browse files Browse the repository at this point in the history
flyspell
  • Loading branch information
jasonblewis committed Oct 25, 2012
1 parent f876cef commit 0c59cdb
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion starter-kit-misc.el
Expand Up @@ -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)
Expand Down

0 comments on commit 0c59cdb

Please sign in to comment.