2009-08-01

making ispell work in emacs windows

On Aug 1, 1:53 am, sam jesse wrote:
> do I need to install both? I already installed aspell and the trace I am
> getting is:
>
> Debugger entered--Lisp error: (file-error "Searching for program" "no such
> file or directory" "ispell")
> call-process("ispell" nil t nil "-vv")
> apply(call-process ("ispell" nil t nil "-vv"))
> ispell-call-process("ispell" nil t nil "-vv")
> ispell-check-version()
> byte-code("숁 " [nil (ispell-check-version) ((error))] 3)
> (defvar ispell-library-directory (byte-code "숁 " [nil ... ...] 3)
> ("c:/Documents and Settings/emp1/My
> Documents/emacs-22.3/lisp/textmodes/ispell.elc" . 25279))
>
> also I have in my .emacs
> (setq flyspell-mode t)
> (setq debug-on-error t)
> (setq debug-on-signal t)

make sure ispell is in your windows path.

e.g. here's what i have in my init file:

(when (string-equal system-type "windows-nt")
(progn
(setenv "PATH" "/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem")
(setq exec-path
'(
"C:/Program Files (x86)/Emacs/emacs/bin/"
"C:/Windows/system32/"
"C:/Windows/"
"C:/Windows/System32/Wbem/"
"C:/Windows/system32/WindowsPowerShell/v1.0/"
"C:/cygwin/bin/"
)
)
)
)

Xah
∑ http://xahlee.org/



btw, recently someone posted a question about how to use hunspell.

I'd very much interested in that... i did some 1 hour research on wikipedia about this in the past month... hunspell seems to be the best one and used in opera, firefox etc.

anyone has tried to make it work with emacs?

Xah
∑ http://xahlee.org/

No comments:

Post a Comment