I’m using Aspell as a spelling checker for Emacs.
I know that, as a standalone, aspell can handle multpiple dictionaries (using extra-dicts param), but how to configure it under Emacs?
I know very little of emacs lisp… Could I provide some “ispell extra-args” in .emacs file? Would that work? If so I’d really appreciate simple example – I know very little of lisp syntax and absolute/relative paths it handles and etc.
The reason why I need this is that I sometimes write some documentation in Polish with English words in it. That makes spell-check-region much less attractive task than it is using single language in a file.
Thanks in advance!
I’m assuming that aspell is set as your
ispell-program-name(you can do this in customize).( Add these to your
.emacsor.emacs.d/init.el)You can add multiple dictionaries to the
ispell-dictionary-alist(syntax is a bit complex, get more info in Emacs help with: C-h vispell-dictionary-alist)Example.
You could also bind dictionary swapping to the keyboard.
e.g.