aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/textmodes
diff options
context:
space:
mode:
authorEli Zaretskii2005-05-07 16:06:07 +0000
committerEli Zaretskii2005-05-07 16:06:07 +0000
commit55b958f07b648fb9b6eb2faaa39a1a566908e4a0 (patch)
treecf2fc94ad10263094fcd4668e192da90a4771335 /lisp/textmodes
parentc2c51a11cdfb8a6e8e3a916e27b38d846c76dbdc (diff)
downloademacs-55b958f07b648fb9b6eb2faaa39a1a566908e4a0.tar.gz
emacs-55b958f07b648fb9b6eb2faaa39a1a566908e4a0.zip
(ispell-program-name): Try looking for "aspell" along exec-path,
and if found, use it as the default speller program.
Diffstat (limited to 'lisp/textmodes')
-rw-r--r--lisp/textmodes/ispell.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/lisp/textmodes/ispell.el b/lisp/textmodes/ispell.el
index 97bc3350b47..c8926776400 100644
--- a/lisp/textmodes/ispell.el
+++ b/lisp/textmodes/ispell.el
@@ -301,7 +301,9 @@ Must be greater than 1."
301 :type 'integer 301 :type 'integer
302 :group 'ispell) 302 :group 'ispell)
303 303
304(defcustom ispell-program-name "ispell" 304(defcustom ispell-program-name
305 (or (locate-file "aspell" exec-path exec-suffixes 'file-executable-p)
306 "ispell")
305 "Program invoked by \\[ispell-word] and \\[ispell-region] commands." 307 "Program invoked by \\[ispell-word] and \\[ispell-region] commands."
306 :type 'string 308 :type 'string
307 :group 'ispell) 309 :group 'ispell)