(ispell-program-name): Try looking for "aspell" along exec-path,

and if found, use it as the default speller program.
This commit is contained in:
Eli Zaretskii 2005-05-07 16:06:07 +00:00
parent c2c51a11cd
commit 55b958f07b
2 changed files with 9 additions and 1 deletions

View file

@ -301,7 +301,9 @@ Must be greater than 1."
:type 'integer
:group 'ispell)
(defcustom ispell-program-name "ispell"
(defcustom ispell-program-name
(or (locate-file "aspell" exec-path exec-suffixes 'file-executable-p)
"ispell")
"Program invoked by \\[ispell-word] and \\[ispell-region] commands."
:type 'string
:group 'ispell)