Skip to content

Instantly share code, notes, and snippets.

@maxking
Created July 11, 2017 03:46
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save maxking/282003f8b5e35b5ccabe534a83c5ee66 to your computer and use it in GitHub Desktop.
Save maxking/282003f8b5e35b5ccabe534a83c5ee66 to your computer and use it in GitHub Desktop.
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
(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