#pragma section-numbers off [[TableOfContents]] = 概要 = DTDを記述するモード。 ["psgml-mode"],CategoryXml参照 = URL = http://www.menteith.com/tdtd/ = インストールと設定 = tdtd.zipを持ってきます。 {{{ mkdir tdtd unzip tdtd.zip -d tdtd }}} .emacsにはdot_emacsという文章に書いてある通りに記述。 {{{ ;; DTD mode (autoload 'dtd-mode "tdtd" "Major mode for SGML and XML DTDs." t) (autoload 'dtd-etags "tdtd" "Execute etags on FILESPEC and match on DTD-specific regular expressions." t) (autoload 'dtd-grep "tdtd" "Grep for PATTERN in files matching FILESPEC." t) ;; Turn on font lock when in DTD mode (add-hook 'dtd-mode-hooks 'turn-on-font-lock) (setq auto-mode-alist (append (list '("\\.dcl$" . dtd-mode) '("\\.dec$" . dtd-mode) '("\\.dtd$" . dtd-mode) '("\\.ele$" . dtd-mode) '("\\.ent$" . dtd-mode) '("\\.mod$" . dtd-mode)) auto-mode-alist)) }}} = 利用方法 = ||key||binding||説明|| ||{{{}}}||complete-tag||タグ補完|| ||ESC||Prefix Command|||| ||C-c||Prefix Command|||| ||>||dtd-electric-mdc|||| ||ESC C-g||font-lock-fontify-buffer|||| ||ESC g||Prefix Command|||| ||M-g ESC||Prefix Command|||| ||C-c C-v||sgml-validate||sgml validate|| ||C-c C-c||dtd-comment||コメントを挿入|| ||C-uC-cC-c||...||見出しコメント挿入|| ||C-c C-e||dtd-declare-element||要素定義|| ||C-c C-%||dtd-declare-parameter-entity||パラメータ定義|| ||C-c ESC||Prefix Command|||| ||C-c C-n||dtd-declare-notation|||| ||C-c C-a||dtd-declare-attribute||属性定義|| ||C-c >||dtd-insert-mdc|||| ||M-g ESC C-g||font-lock-fontify-buffer|||| ||M-g ESC f||font-lock-fontify-buffer|||| ||C-c ESC C-%||dtd-declare-external-entity|||| = 参考サイト = [http://www.jagat.or.jp/sgml/emacs/tdtd.htm DTD入力支援tdtd] [http://www.jagat.or.jp/sgml/emacs/tdtd-t.htm tdtdを用いたDTD作成の例] ---- CategoryEmacs CategoryXml