php編集モード

#contents

#navi(emacs)

**インストール [#v87c53a7]
さくらのレンタルサーバーについている emacs 22.3.1 では、phpを開いても
適切なモードにならないので、編集しにくい。

+[[PHP mode for Emacs (SourceForge.net):http://sourceforge.net/projects/php-mode/]]から zipファイルをダウンロードして、中の php-mode.el を ~/share/site-lisp というディレクトリを作ってそこへコピー
+diredを使って ~/share/site-lisp/php-mode.el を 'B' コマンドで byte-compile
+~/.emacs に下記を加える
 (push "/home/<さくらのアカウント名>/share/site-lisp" load-path)
 (require 'php-mode)

これで大丈夫なようだ。


トップ   一覧 単語検索 最終更新   ヘルプ   最終更新のRSS