Fix (hopefully) enabling flyspell automatically
This commit is contained in:
parent
ce763e1687
commit
00df579c67
|
@ -30,10 +30,9 @@
|
|||
(keymap-set global-map "C-c p d" #'package-delete)
|
||||
|
||||
;; turn on spell checking, if available.
|
||||
(with-eval-after-load 'ispell
|
||||
(when (executable-find ispell-program-name)
|
||||
(add-hook 'text-mode-hook #'flyspell-mode)
|
||||
(add-hook 'prog-mode-hook #'flyspell-prog-mode)))
|
||||
(when (and (require 'ispell nil :noerror) (executable-find ispell-program-name))
|
||||
(add-hook 'text-mode-hook #'flyspell-mode)
|
||||
(add-hook 'prog-mode-hook #'flyspell-prog-mode))
|
||||
|
||||
;; Make shebang (#!) file executable when saved
|
||||
(add-hook 'after-save-hook #'executable-make-buffer-file-executable-if-script-p)
|
||||
|
|
Loading…
Reference in a new issue