Prefix Portage v. Aquamacs v. aspell

I come from a heavy Gentoo background in GNU/Linux land, so on OS X, I prefer Prefix Portage. YMMV, but I think it’s a great environment. I mainly use it to install the few extra UNIX utilities that don’t ship with OS X.

Wanting to get spell checking working, I read the Emacs Wiki, and thought all I had to do was install aspell. I even added my prefix portage paths to my Preferences.el file:

  1. (setenv "PATH" (concat "/Library/Gentoo/bin" path-separator (getenv "PATH")))
  2. (setenv "PATH" (concat "/Library/Gentoo/sbin" path-separator (getenv "PATH")))
  3. (setenv "PATH" (concat "/Library/Gentoo/usr/bin" path-separator (getenv "PATH")))
  4. (setenv "PATH" (concat "/Library/Gentoo/usr/sbin" path-separator (getenv "PATH")))

While the above did change my path, it didn’t make spellcheck work. The following code did:

  1. ;; spelling
  2.  (eval-after-load "ispell"
  3.   (progn
  4.     (setq ispell-dictionary "en"
  5.           ispell-silently-savep t)))
  6. (setq-default ispell-program-name "/Library/Gentoo/usr/bin/aspell")

The peculiar thing is that I had to specify the full path to aspell, and not just “aspell” with the above PATH additions. Very strange; I’m no Lisp programmer (yet!), so any suggestions would be appreciated.

Leave a Reply

notes about computers and lifestyle