[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: aspell with different dictionaries

From: Kevin Rodgers
Subject: Re: aspell with different dictionaries
Date: Tue, 24 Aug 2004 17:32:57 -0600
User-agent: Mozilla/5.0 (X11; U; SunOS i86pc; en-US; rv: Gecko/20020406 Netscape6/6.2.2

Nathan Sidoli wrote:
>>(global-set-key "\C-csb" (lambda () (interactive)
>>                           (ispell-change-dictionary "british")))
>>(global-set-key "\C-css" (lambda () (interactive)
>>                           (ispell-change-dictionary "svenska")))
> Thanks, this is helpful and I will use it for now but ideally I would
> like a situation where I chose my dictionary on each spellcheck. For
> example, I could use
> C-cer
> to check a region in English or
> C-cdw
> to check a work in German, etc. Does anyone out there know some lisp
> to do this?

Isn't it obvious?

(global-set-key "\C-cer" (lambda () (interactive)
                           (ispell-change-dictionary "english")
                           (ispell-region (region-beginning) (region-end)))

(global-set-key "\C-cdw" (lambda () (interactive)
                           (ispell-change-dictionary "deutsch")

Kevin Rodgers

reply via email to

[Prev in Thread] Current Thread [Next in Thread]