Created
July 17, 2015 21:13
-
-
Save incandescentman/f76e18cee98ccbd91e6b to your computer and use it in GitHub Desktop.
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
(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