Last active
December 25, 2021 14:42
-
-
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!
This file contains hidden or 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
(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) | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.