- バックアップ一覧
- ソース を表示
- Ruby on Rails/emacs-railsのインストール は削除されています。
- 1 (2007-01-13 (土) 14:54:04)
- 2 (2007-01-13 (土) 14:57:32)
- 3 (2007-01-16 (火) 12:51:06)
- 4 (2007-02-24 (土) 06:33:41)
- 5 (2007-02-26 (月) 10:06:28)
- 6 (2007-02-27 (火) 03:20:05)
- 7 (2007-02-27 (火) 11:23:17)
- 8 (2007-03-01 (木) 06:58:54)
- 9 (2007-03-02 (金) 23:28:41)
- 10 (2007-03-06 (火) 02:17:39)
- 11 (2007-03-06 (火) 04:27:55)
- 12 (2007-03-06 (火) 22:25:00)
- 13 (2007-03-07 (水) 00:30:03)
- 14 (2007-03-10 (土) 20:32:05)
- 15 (2007-03-11 (日) 03:14:48)
- 16 (2007-03-11 (日) 07:37:42)
- 17 (2007-03-11 (日) 18:24:02)
- 18 (2007-03-11 (日) 22:23:02)
- 19 (2007-03-12 (月) 05:46:02)
- 20 (2007-03-12 (月) 11:11:11)
- 21 (2007-03-12 (月) 20:47:28)
- 22 (2007-03-13 (火) 13:11:50)
- 23 (2007-03-13 (火) 21:06:25)
- 24 (2007-03-14 (水) 06:30:16)
- 25 (2007-03-14 (水) 14:53:21)
- 26 (2007-03-16 (金) 18:19:16)
emacs-railsとは、emacsでrailsの開発をするときにすっごく便利なもの。くわしくはこちら。
参考)
- http://d.hatena.ne.jp/higepon/20061222/1166774270
- http://techno.hippy.jp/rorwiki/?HowToUseEmacsWithRails
rootでemacsのsite-lispにインストール。 †
# cd /usr/local/src/ # wget http://rubyforge.org/frs/download.php/15680/emacs-rails-0.43.tar.gz # tar xzf emacs-rails-0.43.tar.gz # mv emacs-rails /usr/share/emacs/site-lisp/rails # wget http://www.webweavertech.com/ovidiu/emacs/find-recursive.txt # mv find-recursive.txt /usr/share/emacs/site-lisp/find-recursive.el # wget http://www.kazmier.com/computer/snippet.el # mv snippet.el /usr/share/emacs/site-lisp/
/usr/share/emacs/site-lisp/subdirs.elがあるか要確認。
なければ、/usr/share/emacs21 とか別のディレクトリかも。
個人のユーザーの.emacsに下記を追記。 †
(setq auto-mode-alist (cons '("\\.rhtml$" . ruby-mode) auto-mode-alist)) (require 'rails) (define-key rails-minor-mode-map "\C-c\C-p" 'rails-lib:run-primary-switch) (define-key rails-minor-mode-map "\C-c\C-n" 'rails-lib:run-secondary-switch) (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))
Ruby Mode Snippetsを使うためには.rhtmlをhtml-modeにする、とひげぽんさんやRoR Wiki翻訳さんのところにはあったが、僕の環境では、ruby-modeじゃないと使えなかった。バージョンのせい?
それにしてもこれは感動