unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Kevin Rodgers <ihs_4664@yahoo.com>
Subject: Re: aspell with different dictionaries
Date: Tue, 24 Aug 2004 17:32:57 -0600	[thread overview]
Message-ID: <412BD029.5020504@yahoo.com> (raw)
In-Reply-To: 4c2a4ae8.0408241316.7c8527a0@posting.google.com

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")
                            (ispell-word)))

-- 
Kevin Rodgers

  reply	other threads:[~2004-08-24 23:32 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-08-16 19:41 aspell with different dictionaries Nathan Sidoli
2004-08-16 19:43 ` Björn Lindström
2004-08-24 21:16   ` Nathan Sidoli
2004-08-24 23:32     ` Kevin Rodgers [this message]
2004-08-25 12:25     ` Frederik Fouvry
2004-08-27 10:17       ` Kevin Atkinson
2004-08-27 10:46         ` Carsten Weinberg

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=412BD029.5020504@yahoo.com \
    --to=ihs_4664@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).