Skip to content

Instantly share code, notes, and snippets.

@incandescentman
Created July 17, 2015 21:13
Show Gist options
  • Save incandescentman/f76e18cee98ccbd91e6b to your computer and use it in GitHub Desktop.
Save incandescentman/f76e18cee98ccbd91e6b to your computer and use it in GitHub Desktop.
(executable-find "hunspell")
(setq-default ispell-program-name "hunspell")
(setq ispell-really-hunspell t)
(setq flyspell-default-dictionary "en_US")
(setq ispell-dictionary "en_US")
(setq ispell-program-name "/usr/local/bin/hunspell")
(setenv "DICTIONARY" "en_US")
(setq ispell-program-name "hunspell")
(eval-after-load "ispell"
'(progn (defun ispell-get-coding-system () 'utf-8)))
(setq ispell-local-dictionary-alist '(("en_US" "[[:alpha:]]" "[^[:alpha:]]" "[']" nil nil nil utf-8)))
(setq ispell-extra-args '("-d en_US"))
(flyspell-mode-on)
(defun add-word-to-personal-dictionary ()
(interactive)
(let ((current-location (point))
(word (flyspell-get-word)))
(when (consp word)
(flyspell-do-correct 'save nil (car word) current-location (cadr word) (caddr word) current-location))))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment