unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Aspell and .emacs
@ 2004-02-02 22:24 Chris Swoyer
  2004-02-03  5:49 ` Eli Zaretskii
  0 siblings, 1 reply; 2+ messages in thread
From: Chris Swoyer @ 2004-02-02 22:24 UTC (permalink / raw)


'I've  moved to a mac (OS 10.3.2) and have installed aspell (which I
only use for Emacs, and usually LaTeXing). I have


(setq ispell-program-name
"/Library/PreferencePanes/Spelling.prefPane/Contents/MacOS/cocoAspell")

     (add-hook 'LaTeX-mode-hook 'flyspell-mode)

in my .emacs, which works fine, but I'd like to be able to check
word by word, region by region, easily add words to the dictionary
while spell checking (and from my old ispell_words file). Is there
a way to get some counterpart of this (from my _emacs under
Windows) to work (obviously it will need path changes, but that
hasn't been enough):

--------------

(autoload 'ispell-word "ispell4"
                "Check spelling of word at or before point" t)
                (autoload 'ispell-complete-word "ispell4"
                "Complete word at or before point" t)
                (autoload 'ispell-region "ispell4"
                "Check spelling of every word in the region" t)
                (autoload 'ispell-buffer "ispell4"
                "Check spelling of every word in the buffer" t)
                (setq ispell-command "c:/emacs/bin/ispell4/ispell.exe"
                ispell-look-dictionary "c:/emacs/bin/ispell4/ispell.words"
                ispell-look-command "c:/emacs/bin/ispell/look.exe"
                ispell-command-options (list "-d"
                "c:/emacs/bin/ispell4/ispell.dict")
                (setq ispell-command "c:/ispell4/ispell.exe"
                ispell-look-dictionary "c:/ispell4/ispell.words"
                ispell-look-command "c:/ispell/look.exe"
                ispell-command-options (list "-d"
                "c:/ispell4/ispell.dict")
                )

(setq ispell-enable-tex-parser t)

(define-key global-map "\C-c1" 'ispell-word)
(define-key global-map "\C-c2" 'ispell-region)
(define-key global-map "\C-c3" 'ispell-buffer)
(define-key global-map "\C-c4" 'ispell-complete-word )

---------------------

Thanks,
CS

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: Aspell and .emacs
  2004-02-02 22:24 Aspell and .emacs Chris Swoyer
@ 2004-02-03  5:49 ` Eli Zaretskii
  0 siblings, 0 replies; 2+ messages in thread
From: Eli Zaretskii @ 2004-02-03  5:49 UTC (permalink / raw)


> From: "Chris Swoyer" <fswoyer@cox.net>
> Newsgroups: gnu.emacs.help
> Date: Mon, 2 Feb 2004 16:24:51 -0600
> Organization: Cox Communications
> Xref: shelby.stanford.edu gnu.emacs.help:120636
> Sender: help-gnu-emacs-bounces+eliz=elta.co.il@gnu.org
> 
> 'I've  moved to a mac (OS 10.3.2) and have installed aspell (which I
> only use for Emacs, and usually LaTeXing). I have
> 
> 
> (setq ispell-program-name
> "/Library/PreferencePanes/Spelling.prefPane/Contents/MacOS/cocoAspell")
> 
>      (add-hook 'LaTeX-mode-hook 'flyspell-mode)
> 
> in my .emacs, which works fine, but I'd like to be able to check
> word by word, region by region, easily add words to the dictionary
> while spell checking (and from my old ispell_words file). Is there
> a way to get some counterpart of this (from my _emacs under
> Windows) to work (obviously it will need path changes, but that
> hasn't been enough):

I think, once you've told Emacs where to find the speller program via
ispell-program-name, the other ispell-* commands should just work.
ispell-word, for example, already has a standard Emacs binding, M-$,
so just try it and see if it does what you want.  As for the other
spelling commands, all you need is to bind them to keys with
define-key.

> (autoload 'ispell-word "ispell4"

This is something you should _not_ do: ispell4 is a very old
interface to an old version of Ispell program.  You simply no longer
need all these autoload lines, Emacs does that automatically.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2004-02-03  5:49 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-02-02 22:24 Aspell and .emacs Chris Swoyer
2004-02-03  5:49 ` Eli Zaretskii

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).