Emacs support for Ruby and Rails

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


(require 'ruby-mode)
(require 'ruby-electric)

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


(defun try-complete-abbrev (old)
(if (expand-abbrev) t nil))
(setq hippie-expand-try-functions-list
'(try-complete-abbrev
try-complete-file-name
try-expand-dabbrev))

(require 'rails)

AttachmentSize
emacs-ruby-rails-1.0.zip26.56 KB

Comments

Comment viewing options

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

<3 Ruby's

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

Getting following error when

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

Use CVS HEAD

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Lines and paragraphs break automatically.

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
5 + 10 =
Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.