« 3月は「PHPバグ月間」,元開発者がバグを毎日公開へ | メイン | [emacs] 文字列置き換え M-x replace-string RET [置換前文字] RET [置換後文字] RET »

[emacs] html-mode

http://oku.edu.mie-u.ac.jp/~okumura/html/emacs.html
↑を参考にした。

1.html-helper-mode.el と tempo.el をダウンロード配置
こちらからhtml-helper-mode.el と tempo.el をダウンロードして使うことにします。これらは elisp 用のパスの通ったところ(たとえば /usr/local/share/emacs/site-lisp/)に入れておきます。
windowsでもパスの通ったところにおきましょう。(c:\Meadow:\lisp とか)

2. .emacs に加筆
;;html-mode
(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
(setq auto-mode-alist (cons '("\\.html$" . html-helper-mode) auto-mode-alist))
(setq auto-mode-alist (cons '("\\.tpl$" . html-helper-mode) auto-mode-alist))

※ .html と .tpl をhtmlモードにする。

3.emacs再起動



トラックバック

このエントリーのトラックバックURL:
http://synth.jp/pg/mt-tb.cgi/158

コメントを投稿

(いままで、ここでコメントしたことがないときは、コメントを表示する前にこのブログのオーナーの承認が必要になることがあります。承認されるまではコメントは表示されません。そのときはしばらく待ってください。)

カレンダー


2007年06月
Su Mo Tu We Th Fr Sa
          1 2
3 4 5 6 7 8 9
10 11 12 13 14 15 16
17 18 19 20 21 22 23
24 25 26 27 28 29 30

Map

About

2007年03月08日 18:11に投稿されたエントリーのページです。

ひとつ前の投稿は「3月は「PHPバグ月間」,元開発者がバグを毎日公開へ」です。

次の投稿は「[emacs] 文字列置き換え M-x replace-string RET [置換前文字] RET [置換後文字] RET」です。

他にも多くのエントリーがあります。メインページアーカイブページも見てください。