emacs でHTML

普段、HTMLはEclipseプラグインのAmaterasを利用して書いているのだけれど、emacsにHTML用の拡張があるようなので試してみた。

HTML

html-helper-mode.eltempo.elhtml-font.elを任意のディレクトリにダウンロードする。
そして、.emacs に下記の設定を追記。

;; html-helper-mode の設定
(add-hook 'html-helper-load-hook '(lambda () (require 'html-font)))
(autoload 'html-helper-mode "html-helper-mode" "Yay HTML" t)
(setq auto-mode-alist
(append '*1

CSS

css-mode.elを任意のディレクトリにダウンロードする。
そして、.emacs に下記の設定を追記。

;; css-mode の設定
(autoload 'css-mode "css-mode")
(setq auto-mode-alist (cons '("\\.css$" . css-mode) auto-mode-alist))

参考URL
html-helper-mode と css-mode の導入 - n246の日記
Emacs で HTML

*1:"\\.html$" . html-helper-mode) ("\\.shtml$" . html-helper-mode) ("\\.html$" . html-helper-mode) ("\\.shtml$" . html-helper-mode) ) auto-mode-alist