Add nXML config

This commit is contained in:
Jeremy Dormitzer 2021-04-05 10:45:07 -04:00
parent a6f2b96937
commit 15ddb2763a
2 changed files with 16 additions and 0 deletions

View File

@ -0,0 +1,15 @@
;; -*- lexical-binding: t; -*-
(use-package nxml-mode
:straight (:type built-in)
:defer t
:config
(add-to-list 'hs-special-modes-alist
'(nxml-mode
"<!--\\|<[^/>]*[^/]>" ;; regexp for start block
"-->\\|</[^/>]*[^/]>" ;; regexp for end block
"<!--"
nxml-forward-element
nil)))
(provide 'init-xml)

View File

@ -90,6 +90,7 @@
(require 'init-lisp)
(require 'init-js)
(require 'init-web)
(require 'init-xml)
(require 'init-yaml)
(require 'init-groovy)
(require 'init-terraform)