Skip to content

Instantly share code, notes, and snippets.

@vibrog
Created December 22, 2010 22:26
Show Gist options
  • Save vibrog/752198 to your computer and use it in GitHub Desktop.
Save vibrog/752198 to your computer and use it in GitHub Desktop.
Setting ispell-dictionary-alist in .emacs
;;; Spell checking using hunspell
(setq ispell-dictionary-alist
'((nil "[A-Za-z]" "[^A-Za-z]" "[']" t
("-d" "en_US" "-i" "utf-8") nil utf-8)
("american"
"[A-Za-z]" "[^A-Za-z]" "[']" nil
("-d" "en_US") nil utf-8)
("english"
"[A-Za-z]" "[^A-Za-z]" "[']" nil
("-d" "en_GB") nil utf-8)
("british"
"[A-Za-z]" "[^A-Za-z]" "[']" nil
("-d" "en_GB") nil utf-8)
("norsk"
"[A-Za-zÉÆØÅéæøå]" "[^A-Za-zÉÆØÅéæøå]" "[\"]" nil
("-d" "nb_NO") "~list" utf-8)))
(eval-after-load "ispell"
(progn
(setq ispell-dictionary "english"
ispell-extra-args '("-a" "-i" "utf-8")
ispell-silently-savep t)))
(setq-default ispell-program-name "hunspell")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment