Created
July 11, 2022 11:02
-
-
Save brianjriddle/6e3746a0cafe9303f239221cd28f179e to your computer and use it in GitHub Desktop.
spacemacs hunspell configuration
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
(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