php編集モード


インストール

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

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

これで大丈夫なようだ。


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