Created
July 11, 2017 03:46
-
-
Save maxking/282003f8b5e35b5ccabe534a83c5ee66 to your computer and use it in GitHub Desktop.
Emacs configuration for flyspell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
(require 'flyspell) | |
(setq ispell-list-command "--list") ;; run flyspell with aspell, not ispell | |
(add-hook 'prog-mode-hook 'flyspell-prog-mode) | |
(global-set-key [(control c) (f)] 'flyspell-check-previous-highlighted-word) | |
;;------------- | |
;; Text mode | |
;;------------- | |
(add-hook 'text-mode-hook 'flyspell-mode) | |
(add-hook 'prog-mode-hook 'flyspell-prog-mode) | |
;; Highlight BUG FIXME TODO NOTE keywords in the source code. | |
(add-hook 'find-file-hook | |
(lambda() | |
(highlight-phrase "\\(BUG\\|FIXME\\|TODO\\|NOTE\\):"))) | |
(require 'projectile) | |
;; Enable projectile by default for all programming mode. | |
(add-hook 'prog-mode-hook 'projectile-mode) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment