Rails を触らなくても入れて置いたほうがいい rails.el

これもパクリ。Rails 触らなくても、{} の補完とかしてくれるので便利。

以下をダウンロードしてロードパスが通っているディレクトリに置く。


RubyForge: emacs-rails: Project Info
find-recursive.el
snippet.el


そして以下を.emacsに追加する。

;;; rails.el の設定
(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)


情報源は以下のリンク先(gan2 さんいつもすいません)。


Rails を触らなくても入れて置いたほうがいい rails.el - gan2 の Ruby 勉強日記