Thanks! It solves my similar problem with Spanish and English. I used castellano8 instead of russian below. Regards, Luis
On Sat, Jul 07, 2012 at 06:49:27AM -0700, fe...@crowfix.com wrote: > On Sat, Jul 07, 2012 at 10:03:20AM -0300, Marcelo Luiz de Laia wrote: > > Hello, I use emacs to compose messages to mutt. However, I speak > > Portuguese and often have to write in English. Is it possible to call > > the two dictionaries, in emacs, at the same time? For example, take the > > dictionary Portuguese and English in the same buffer? > > I googled for "emacs two dictionaries" and found this, which toggles > between two dictionaries: > > > http://stackoverflow.com/questions/11361603/how-to-define-two-ispell-dictionaries-in-emacs-for-latex-mode > > I have a way to toggle between two languages: > > ;; You should have aspell-ru and aspell-en packages installed > (let ((langs '("english" "russian"))) > (setq lang-ring (make-ring (length langs))) > (dolist (elem langs) (ring-insert lang-ring elem))) > (defun cycle-ispell-languages () > (interactive) > (let ((lang (ring-ref lang-ring -1))) > (ring-insert lang-ring lang) > (ispell-change-dictionary lang))) > > (global-set-key (kbd "C-1") 'cycle-ispell-languages) > > There's one down vote because the voter wants to automate it, but I > don't think that makes sense. You don't want it to guess at the > language of each word. If it is correct in the correct language, but > wrong in the other language, should it still show the possibilities? > You'd have to choose "as is" for every 90% of the words. > > -- > ... _._. ._ ._. . _._. ._. ___ .__ ._. . .__. ._ .. ._. > Felix Finch: scarecrow repairman & rocket surgeon / fe...@crowfix.com > GPG = E987 4493 C860 246C 3B1E 6477 7838 76E9 182E 8151 ITAR license #4933 > I've found a solution to Fermat's Last Theorem but I see I've run out of room > o -- o W. Luis Mochán, | tel:(52)(777)329-1734 /<(*) Instituto de Ciencias Físicas, UNAM | fax:(52)(777)317-5388 `>/ /\ Apdo. Postal 48-3, 62251 | (*)/\/ \ Cuernavaca, Morelos, México | moc...@fis.unam.mx /\_/\__/ O< ascii ribbon campaign - stop html mail - www.asciiribbon.org