HTML helperモードを入れる
Meadowにもともと入ってるXHTMLモードより多機能で便利そうだったので、HTML helperモードを入れてみた。
まず、html-helper-mode.el, hhm-config.el, tempo.elを以下のページからダウンロードして、ロードパスの通ったディレクトリ(site-lispとか)に入れる。
HTML Helper Mode
そして、.emacsに以下の設定を追加。
(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t) ; auto-mode-alistによって実行する拡張子を決めさせるために、magic-mode-alistをnilにする ; これが無いと、normal-modeという関数が自動で呼び出されて、(x)html-modeになってしまうみたい (setq magic-mode-alist nil) (setq auto-mode-alist (append '( ("\\.html". html-helper-mode) ("\\.htm" . html-helper-mode) ("\\.shtml$" . html-helper-mode) ; ("\\.php" . html-helper-mode) ) auto-mode-alist))
参考
HTML Helper Mode(html-helper-mode.el, hhm-config.el, tempo.elのダウンロード元)
Emacs で HTML(リファレンス代わりに使えそう)
html-helper-mode documentation(ドキュメント)
Configuring html-helper-mode(設定ファイルの編集)