Enable hs-minor-mode in xml buffers
This commit is contained in:
parent
59d48374b9
commit
7c3dab46d3
@ -15,6 +15,7 @@
|
|||||||
(shell-command-on-region start end "xmllint --format -" nil t))
|
(shell-command-on-region start end "xmllint --format -" nil t))
|
||||||
(t (sgml-pretty-print start end)))))
|
(t (sgml-pretty-print start end)))))
|
||||||
(general-def nxml-mode-map "C-M-\\" #'xml-pretty-print)
|
(general-def nxml-mode-map "C-M-\\" #'xml-pretty-print)
|
||||||
|
(add-hook 'nxml-mode-hook #'hs-minor-mode)
|
||||||
(add-to-list 'hs-special-modes-alist
|
(add-to-list 'hs-special-modes-alist
|
||||||
'(nxml-mode
|
'(nxml-mode
|
||||||
"<!--\\|<[^/>]*[^/]>" ;; regexp for start block
|
"<!--\\|<[^/>]*[^/]>" ;; regexp for start block
|
||||||
|
Loading…
Reference in New Issue
Block a user