Aquamacs 2.1 is now out.
UPDATE [2011/08/04]: Aquamacs 2.3a (the latest at this time) has CEDET already in it. So skip the part about installing CEDET. I still recommend creating the
site-start.elfile for CEDET but beware the differences between CEDET shipped with Emacs and the stand-alone version. When you get ECB, you need a version newer than 2.40, which at this time means getting the CVS version.
The new 2.x series no longer requires the Dvorak hack I posted about earlier (yay!)
2.1 has a nice new mechanism for plugins, so here are instructions for making CEDET and ECB work with Aquamacs.
Note before continuing: I’m using the version numbers I got installing these packages. If there are newer ones, use them. I also am assuming you installed Aquamacs.app into /Applications/
CEDET
CEDET is a collection of emacs tools to make your life easier. I don’t fully grok all of them, but some are really nice. Semantic is in-language completion, for example.
A full install of CEDET is required for ECB and Aquamacs doesn’t come with that (yet?!) so you need to install it yourself.
- Download the latest CEDET from sourceforge
- Untar the file in
~/Library/Application Support/Aquamacs Emacs:cd ~/Library/Application Support/Aquamacs Emacs tar xf ~/Downloads/cedet-1.0.tar.gz
- Run
make:make EMACS=/Applications/Aquamacs.app/Contents/MacOS/Aquamacs
- Create a
site-start.elfile. This will be loaded automagically by Aquamacs. It should look like this. You should replaceYOUR USERNAMEwith your OS X username.(load-file "/Users/YOUR USERNAME/Library/Application Support/Aquamacs Emacs/cedet-1.0/common/cedet.el") (global-ede-mode 1) ; Enable the Project management system ;; These two options below are only for the stand-alone CEDET. Not the one ;; now included with newer Aquamacs/Emacs. (semantic-load-enable-code-helpers) ; Enable prototype help and smart completion (global-srecode-minor-mode 1) ; Enable template insertion menu
- Now you need to pull all the .info files into a directory called
infowith adirfile. Aquamacs is smart enough to figure out this is plugin specific info files, and will use it.mkdir info cd info find .. -type f -name '*.info' | while read i; do j="$(basename $i)"; ln -s "$i" "$j"; install-info --info-dir="$(pwd)" "$j"; done
- Restart Aquamacs and you should have the full CEDET available, including docs.
ECB
ECB is the Emacs Code Browser. It basically turns Emacs into a full IDE like XCode.
- Download the latest ECB from sourceforge. WARNING: If you’re using Aquamacs 2.3, then you’ll need the latest version via CVS:
cvs -z3 -d:pserver:anonymous@ecb.cvs.sourceforge.net:/cvsroot/ecb co -P ecb
- Untar the file in
~/Library/Application Support/Aquamacs Emacs:cd ~/Library/Application Support/Aquamacs Emacs tar xf ~/Downloads/ecb-2.40.tar.gz
- Create a
site-start.elfile to load up ECB on startup:(add-to-list 'load-path "/Users/YOUR USERNAME/Library/Application Support/Aquamacs Emacs/ecb-2.40") ;; Choose one of the following... ;; If you want to load the complete ECB at (X)Emacs-loadtime ;; (Advantage: All ECB-options available after loading ;; ECB. Disadvantage: Increasing loadtime2): (require 'ecb) ;; If you want to load the ECB first after starting it by ecb-activate ;; (Advantage: Fast loading3. Disadvantage: ECB- and semantic-options ;; first available after starting ECB): ;; WARNING: This doesn't work with the CVS version of ECB unless edit Makefile ;; and run make. ;(require 'ecb-autoloads)
- Symlink the
info-helpdirectory toinfoand create adirfile. - Restart aquamacs and you should have ECB available, including docs.
ln -s info-help info cd info install-info --info-dir="$(pwd)" ecb.info
You’re Done!
I suggest you sit down and read some of the docs for ECB and CEDET. Especially A Gentle Introduction to Cedet and reading the info docs for ECB by using M-x info or the HTML version in the ECB directory we created.
Ciao!
Thanks for the great instructions. I am new to aquamacs (and emacs) and was able to get ECB up and running with ease! Looking forward to learning more.
Cool! I’m glad it was helpful!
I wish emacs/aquamacs had a better system for handling large extensions like this. Some sort of plugin or gem system.
Thanks for the post! FYI, you can use
expand-file-nameto use a tilde in the site-start.el files:(load-file (expand-file-name "~/Library/Application Support/Aquamacs Emacs/cedet-1.0/common/cedet.el"))Thanks for this great tutorial, it’s perfectly explained.
Pingback: Aquamacs 2.3a and Marmalade | The Doctor What