Skip to content

Instantly share code, notes, and snippets.

@Hi-Angel
Last active December 25, 2021 14:42
Show Gist options
  • Save Hi-Angel/75bc8a557037da1bb4e599a69fb2049e to your computer and use it in GitHub Desktop.
Save Hi-Angel/75bc8a557037da1bb4e599a69fb2049e to your computer and use it in GitHub Desktop.
Functions needed for Emacs to check multiple languages simultaneously. Tested under `emacs -Q` as of 28.0.50 version. Make sure to have the hunspell dictionaries!
(progn
(require 'ispell)
(setq ispell-program-name "hunspell")
(ispell-set-spellchecker-params)
(ispell-hunspell-add-multi-dic "ru_RU,en_US")
(ispell-change-dictionary "ru_RU,en_US" t)
(flyspell-mode 1)
)
@Hi-Angel
Copy link
Author

FTR, in real world you clearly wouldn't want to execute this every time Emacs is loaded. See this paragraph in my configs if you want to copy-paste some ready config snippet. Do note I use use-package there, so you need to have it installed first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment