Monday, March 28, 2016

How to install aspell for emacs on a macbook

Recently I bought a shiny new macbook and needed to install "aspell" for emacs.  Here's the way I did this:

1.  First install Homebrew, the missing package manager for the mac.  The hardest part is the arcane license acceptance bit.  In a console window enter:

sudo xcodebuild -license
/usr/bin/ruby -e "$(curl -fsSL"

2. Then install "aspell" into the "/usr/local/bin" by entering this command:

brew install aspell --with-lang-en

3.  In your .emacs file add the code to link this all together:

(setq-default ispell-program-name "aspell")
(add-to-list 'exec-path "/usr/local/bin")

4. Enjoy.

No comments: