Configure emacs using mostly marmalade and keep it as simple but full featured as possible. This is mainly setup for Ruby on Rails development
Emacs Lisp
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.


This emacs mostly uses packages in the aim to simplify the management of my emacs configuration. I use two repos:


NOTE: Adding tromey is a work around to getting inf-ruby & ruby-mode working together nicely through marmalade. Refer to this issue:

Once this issue is resolved I recommend removing tromey as it has a heap of old packages in it.


Install Emacs 24.3 (stable)

  1. Download
  2. untar
  3. Install requirements
    $ sudo aptitude install build-essential xorg-dev libgtk2.0-dev libgif-dev libtiff-dev libm17n-dev libpng12-dev librsvg2-dev libotf-dev texinfo libncurses-dev automake
  4. Compile
    ./configure --prefix=/opt/emacs24
    make -j4
  5. Install
    sudo make install

Now you can uninstall any emacs you have installed through symantic (ie: emacs-snapshot)

I’ve tested this on ubuntu 10.04.3, Linux Mint 14 & Debian 7.1, but it should work on any Linux machine.



Back up your .emacs.d directory

$ mv ~/.emacs.d ~/.emacs.d.bak

Clone this repo

$ git clone git:// ~/.emacs.d

Get git submodules (within ~/.emacs.d)

$ git submodule init
$ git submodule update

Start emacs and it should compile everything

Updating packages


Advanced auto-complete section using Rsense

Rsense is a third party tool to help create popups in emacs for auto-complete.

$ wget
$ sudo unzip rsence-0.3 -d /opt

I added the following to my .zshrc (I recommend using ZSH for Ruby on Rails).

export RSENSE_HOME=/opt/rsense-0.3/

Start a new shell

$ chmod +x $RSENSE_HOME/bin/rsense
$ ruby $RSENSE_HOME/etc/config.rb > ~/.rsense

Restart emacs and test (I usually test by typing in a string and start typing upcase).

"test".up... (You should get a list of options)

Gist setup (optional)

If you want to automatically post gists, list gists, etc then you have to setup a file called ./emacs.d/secrets.el with your password

(setq gist-user-password "your-github-password")


The most up to date emacs + rails I could find (as of 20/10/2011).

Rinari (Ruby on Rails minor mode) article

Package must reads

Undo Tree -

Not included & why

MuMaMo - it’s buggy and hard to debug and haml-mode suits me fine. Ref:

EGG - Magit is just as good now for managing git and it’s included in Marmalade so it’s easier to manage.

Other packages to consider

deft - simple note taking, but not as good as org-mode.