root/dotfiles/emacs/typester/.emacs.d/conf/50_nxml.el @ 8028

Revision 8028, 506 bytes (checked in by typester, 6 years ago)

.ttのときxml-fragment-modeになってなかったりしたので修正とか、nxmlの構文チェックエラー行のアンダーライン消したりだとか

Line 
1(require 'nxml-mode)
2(require 'xml-fragment)
3
4(add-to-list 'auto-mode-alist '("\\.html?\\'" . nxml-mode))
5(add-to-list 'auto-mode-alist '("\\.tt\\'" . nxml-mode))
6
7(add-hook 'nxml-mode-hook 'xml-fragment-mode-on-maybe)
8
9(add-to-list 'xml-fragment-wrapper-alist '("\\.html?$" . xml-fragment-wrapper-xhtml1))
10(add-to-list 'xml-fragment-wrapper-alist '("\\.tt$" . xml-fragment-wrapper-xhtml1))
11
12(add-hook 'nxml-mode-hook
13          (lambda ()
14            (define-key nxml-mode-map "\C-c\C-c" 'nxml-complete)))
Note: See TracBrowser for help on using the browser.