Skip to content
This repository was archived by the owner on Jan 3, 2023. It is now read-only.

Commit a908ed2

Browse files
committed
Merge pull request #153 from jasonblewis/v2
check that ispell is actually available before adding the hook for flyspell
2 parents f876cef + 0c59cdb commit a908ed2

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

Diff for: starter-kit-misc.el

+8-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,14 @@ comment as a filename."
110110
(set-default 'imenu-auto-rescan t)
111111

112112
(add-hook 'text-mode-hook 'turn-on-auto-fill)
113-
(add-hook 'text-mode-hook 'turn-on-flyspell)
113+
;; (when (executable-find ispell-program-name)
114+
;; (add-hook 'text-mode-hook 'turn-on-flyspell))
115+
116+
(eval-after-load "ispell"
117+
'(when (executable-find ispell-program-name)
118+
(add-hook 'text-mode-hook 'turn-on-flyspell)))
119+
120+
114121

115122
(defalias 'yes-or-no-p 'y-or-n-p)
116123
(defalias 'auto-tail-revert-mode 'tail-mode)

0 commit comments

Comments
 (0)