Skip to content

Instantly share code, notes, and snippets.

@brianjriddle
Created July 11, 2022 11:02
Show Gist options
  • Save brianjriddle/6e3746a0cafe9303f239221cd28f179e to your computer and use it in GitHub Desktop.
Save brianjriddle/6e3746a0cafe9303f239221cd28f179e to your computer and use it in GitHub Desktop.
spacemacs hunspell configuration
(defun dotspacemacs/user-config ()
"Configuration for user code:
This function is called at the very end of Spacemacs startup, after layer
configuration.
Put your configuration code here, except for variables that should be set
before packages are loaded."
;; For dictionaries look here https://wiki.openoffice.org/wiki/Dictionaries
(with-eval-after-load "ispell"
(setq ispell-program-name "hunspell")
;; ispell-set-spellchecker-params has to be called
;; before ispell-hunspell-add-multi-dic will work
(ispell-set-spellchecker-params)
(ispell-hunspell-add-multi-dic "sv_SE,en_GB")
(setq ispell-dictionary "sv_SE,en_GB"))
)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment