Add flyckeck to prog mode

This commit is contained in:
Maciej Szlosarczyk 2017-08-26 01:21:33 +03:00
parent 58b79e0a74
commit 1426dfecd7
No known key found for this signature in database
GPG key ID: 0D4EEACF63D4262E
3 changed files with 4 additions and 1 deletions

View file

@ -6,9 +6,10 @@
;; Disable meta on right alt (useful for Polish characters)
(setq ns-right-alternate-modifier nil)
(require 'ispell)
;; Highlight misspelled words
(setq ispell-program-name "aspell")
(flyspell-mode 1)
(add-hook 'prog-mode-hook 'flyspell-mode)
(provide 'spelling)
;;; spelling.el ends here