メモメモ

どうもいっす。

body タグの中に frameset タグを書くとフレームは表示されない。

これにハマッテモウタ。
注意しよう。

html-helper-mode が便利!!

M-i(オレの場合は,C-M-i。C-iがタブだからね)で,タグを補完してくれる。
補完候補が複数あるときには,別バッファに候補を表示してくれる。
ま,これは,auto-completeで辞書を用意すれば,できそうだな。
でも,まだ,auto-completeをオンにしないで勉強中なので,
この機能は便利だ。

html-helper-mode でdivタグを挿入

以下を,.emacs に書いた。
これで,C-cC-pdでdivタグが入る。

(defun my-html-helper-mode-hook-func ()
  "Hook function for html-helper-mode"
  (interactive)
  (font-lock-mode 1)
  ;; C-cC-pd inserts "<div></div>"
  (html-helper-add-tag
   '(phys "d" "<div>" "div" ("<div>" 'r "</div>\n") "Div tag")))

(add-hook 'html-helper-mode-hook 'my-html-helper-mode-hook-func)


ちゃんと確認してないけど,たぶん動く


詳細は,以下を参照。
http://homepage3.nifty.com/a-itou/hhm/html-helper-mode-6j.html

html-helper-insert-or-wipe を有効にするかどうかは微妙

(setq tempo-interactive t) すれば,
html-helper-insert-or-wipe が有効になって,タグを挿入する際に,
属性をミニバッファで入力できるが。

課題

divタグをM-i で補完できるようにする。