Wednesday, 26 October 2011

Emacs is so Emacs

Today I ran into trouble installing brand new Emacs24(it is still not there, beta or alfa or whatever), I used to have ubuntu this days and ppa is already up at https://launchpad.net/~cassou/+archive/emacs But what is new in Emacs24? Right they finally put ELPA inside Emacs and now bundling it together. The problem is that the default repository (elpa.gnu.org) is somewhat conservative, a bit. Also some packages already bundled with emacs like ruby-mode and this creates more trouble then has benefits.


Now to get some real fun from using Emcas in a Ruby on Rails project you would normally want many other modes and packages like 'rinary' and others but these packages are just not there, not in elpa.gnu.org. To get most of those nice things you have to add some more repositories, here is my ~/.emacs.d/init.el :
(require 'package)
(add-to-list 'package-archives
             '("marmalade" . "http://marmalade-repo.org/packages/") t)
(add-to-list 'package-archives
             '("tromey" . "http://tromey.com/elpa/") t)
(package-initialize) 

Don't forget to M-x package-refresh-contents after you do the init.el. Most packages like rinary reside on marmalade, but current rinary version wants ruby-mode 1.1 and default ruby-mode bundled with Emacs is 1.0 (I guess that is also a version in elpa.gnu.org). And right here we need tromey repo that has new ruby-mode.

No comments:

Post a Comment