iA


EMacs on OS/X for Rails development

by jcf. Average Reading Time: less than a minute.

Being a step-by-step guide as an aide for the failing memory. Inspired by the screenshots of Dee Zsombor

All my extensions are in ~/lisp and that file (as well as ~/.emacs) are under version control in Subversion. That way, I can check out my workspace on any machine and have a configured way of doing things.

see my .emacs file for a possible way of doing this

All of this should work on a Windows box too

Technorati Tags: ,

10 comments on ‘EMacs on OS/X for Rails development’

  1. Scott says:

    Excellent! Always good to see emacs being used to hack Rails. I’ve been running gnu emacs from their CVS, it’s the only one I could get to build/work reliably on OSX 10.3 (XEmacs worked fine, but for some reason takes an EON to load color-theme.el). I’ll check out that carbon emacs package, looks like it’s built from CVS. If it means a little less work for me, I’m all for it.

    Thanks for the tips.

  2. Scott says:

    Excellent! Always good to see emacs being used to hack Rails. I’ve been running gnu emacs from their CVS, it’s the only one I could get to build/work reliably on OSX 10.3 (XEmacs worked fine, but for some reason takes an EON to load color-theme.el). I’ll check out that carbon emacs package, looks like it’s built from CVS. If it means a little less work for me, I’m all for it.

    Thanks for the tips.

  3. John says:

    Aquamacs (http://aquamacs.org) works fine, and no need to compile… There’s an option to turn off the non-Emacs-like windows behavior.

  4. Phil says:

    Thanks for the tips! All this stuff is quite useful no matter what platform you’re on.

    Long live Emacs!

  5. Ben Luo says:

    After I follow your guide, mmm-mode seems not make ruby code syntax high light between or .

    Is it true?

  6. ix says:

    and now http://cryptocracy.hn.org/~cartel/elisp/snippet.el . seems to have mostly python stuff so far..

    and of course you need to disable XFT hinting and use MSFT’s excellent Consolas font (their best creation/curation in the last decade?) and it even looks like textmate, not just acts.,well ive never used textmate, but also never realized emacs could be such an incredible exoskeleton..

  7. Brandon Edens says:

    Hi, I saw in Dee Zsombor’s screenshots that ruby-mode text enclosed in a single line ie:
    ‘search_spinner’, :style => ‘display:none;’ %>
    is properly font-lock highlighted.

    Under my setup (and others) we’re observing a strange bug where mmm-mode does not font-lock highlight submodes when the tags are contained on the same line. Information about this is contained here,
    http://bugs.gentoo.org/showbug.cgi?id=125420
    and
    http://sourceforge.net/mailarchive/forum.php?thread
    id=8644105&forum_id=5108

    Did you encounter this bug yourself and/or have you heard about others experiencing this? Do you know of a fix or additional information about this?
    Thanks,
    Brandon

  8. Administrator says:

    Hi Brandon

    no – I don’t know about that bug. I must confess, that I have switched from Emacs to TextMate for Rails development. On Mac OS X, TextMate is much easier to work with…

  9. [...] and a nice weblog article EMacs on OS/X for Rails development that was quite helpful. [...]

  10. 1gor says:

    There is a screencast (1.8 Mb) showing some of Emacs features (for Ruby on Rails) that people have seen in TextMate. I am planning to post tips on http://agilemacs.blogspot.com/ if there is interest.

Leave a Reply