Skip to content

Instantly share code, notes, and snippets.

@Hi-Angel
Last active Aug 29, 2021
Embed
What would you like to do?
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

This comment has been minimized.

Copy link
Owner Author

@Hi-Angel Hi-Angel commented Aug 29, 2021

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