Ruby on Rails用のemacs設定

Rubyモードのelファイルを取得

下記のコマンドでrubyをチェックアウト
svn co http://svn.ruby-lang.org/repos/ruby/trunk ruby
miscディレクトリにあるelファイルをすべて「~/.emacs.d」に移動。

rails-emacsの設定

下記のリンクからそれぞれelファイルを取得する。

.emacsの設定

下記のように設定を追加する。

; 念のため、ロードパスを通す
(setq load-path
(append
(list
(expand-file-name "~/.emacs.d/emacs-rails")
(expand-file-name "~/.emacs.d")
) load-path))


(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))

(setq rails-use-mongrel t)
(require 'rails)

以上で完了。