3月 01
※新しい php-mode.el (2008/04/30)
PHP を使うことになったので emacs の php-mode を入れてみたけど、非常に使いにくい状態。
不満噴出で、いろいろ調べて既存の2つの php-mode をくっつけて修正したバージョン。
php-mode.el ver 0.0.4 と php-mode.el var 1.2.0を混ぜて少し修正。
meadow で動作確認。
site-lisp に php-mode.el をコピーして、
.emacs に以下の行を追加。
(autoload 'php-mode "php-mode" "PHP mode" t)
(setq auto-mode-alist
(cons '("\\.\\(php\\|php5\\|inc\\)$" . php-mode) auto-mode-alist))
(add-hook 'php-mode-hook '(lambda ()
(setq php-intelligent-tab nil)
(setq intelligent-tab nil)
(setq indent-tabs-mode t)
(setq c-basic-offset 4)
(setq tab-width 4)
) t)
- php-mode.el 2008/03/01
- php-mode.el ※追記 2008/03/18 ちょっと修正版
- php-mode.el ※追記 2008/04/24 # のコメントはないことにして、コメント内で#以降の色がおかしくなるのを修正。
- 新しい php-mode.el (2008/04/30)