Add nXML config
This commit is contained in:
parent
a6f2b96937
commit
15ddb2763a
15
emacs/.emacs.d/config/init-xml.el
Normal file
15
emacs/.emacs.d/config/init-xml.el
Normal 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)
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user