Emacs support for Ruby and Rails

Code moved to GitHub.
http://github.com/wnoronha/dotemacs/tree/master

This is a update to my previous blog post. All credits to the authors and contributors. I just host these files.

Installation for ruby support and ruby electric. Add the following lines to your .emacs file

  1. (require 'ruby-mode)
  2. (require 'ruby-electric)

Installation for ruby on rails support. Add the following lines to your .emacs file

  1.  (defun try-complete-abbrev (old)
  2.    (if (expand-abbrev) t nil))
  3.  (setq hippie-expand-try-functions-list
  4.        '(try-complete-abbrev
  5.         try-complete-file-name
  6.         try-expand-dabbrev))
  7.  
  8. (require 'rails)

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

<3 Ruby's

Anonymous's picture

Man I love rubys on rails, EMAC support is AWESOME! Nice Post!

Getting following error when

Anonymous's picture

Getting following error when trying to start emacs

Debugger entered--Lisp error: (error "Invalid escape character syntax")
eval-buffer(#> nil "rhtml-navigation" nil t)
load-with-code-conversion("c:/.emacs.d/rinari/rhtml/rhtml-navigation.el" "rhtml-navigation" nil t)
require(rhtml-navigation)
eval-buffer(#> nil "rhtml-mode" nil t)
load-with-code-conversion("c:/.emacs.d/rinari/rhtml/rhtml-mode.el" "rhtml-mode" nil t)
require(rhtml-mode)
eval-buffer(#> nil "rinari" nil t)
load-with-code-conversion("c:/.emacs.d/rinari/rinari.el" "rinari" nil t)
require(rinari)
eval-buffer(# nil "~/.emacs" nil t)
load-with-code-conversion("c:/.emacs" "~/.emacs" t t)
load("~/.emacs" t t)

Use CVS HEAD

wnoronha's picture

Use CVS HEAD

Post new comment

The content of this field is kept private and will not be shown publicly. If you have a Gravatar account, used to display your avatar.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <blockquote> <quote> <code> <blockcode>
  • Lines and paragraphs break automatically.
  • You can enable syntax highlighting of source code with the following tags: <code>, <blockcode>. Beside the tag style "<foo>" it is also possible to use "[foo]".
  • Web page addresses and e-mail addresses turn into links automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Copy the characters (respecting upper/lower case) from the image.