Skip to content

Instantly share code, notes, and snippets.

Created Jul 11, 2017
What would you like to do?
Emacs configuration for flyspell
(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
(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