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ファイルを取得する。
- http://rubyforge.org/projects/emacs-rails/
- http://www.webweavertech.com/ovidiu/emacs/find-recursive.txt
- .txtを.elに変更して「~/.emacs.d」に移動。
- http://www.kazmier.com/computer/snippet.el
- snippet.elをそのまま「~/.emacs.d」に移動。
.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))
以上で完了。