Enable hs-minor-mode in xml files

This commit is contained in:
Jeremy Dormitzer 2019-11-04 17:08:52 -05:00
parent caf257c796
commit ce0321e9f1

View File

@ -136,6 +136,11 @@ Make undo not undo paragraphs at a time:
(setq evil-want-fine-undo t)
#+END_SRC
** Additional keybindings
#+BEGIN_SRC emacs-lisp
(general-def 'normal "zM" #'hs-hide-level)
#+END_SRC
* Magit
Magit is objectively the best Git interface.
#+BEGIN_SRC emacs-lisp
@ -1544,6 +1549,19 @@ Use LSP if [[https://github.com/mads-hartmann/bash-language-server][bash-languag
:config
(add-hook 'rust-mode-hook #'cargo-minor-mode))
#+END_SRC
* XML
Set up hideshow for nXML mode:
#+BEGIN_SRC emacs-lisp
(add-hook 'nxml-mode-hook #'hs-minor-mode)
(add-to-list 'hs-special-modes-alist
'(nxml-mode
"<!--\\|<[^/>]*[^/]>" ;; regexp for start block
"-->\\|</[^/>]*[^/]>" ;; regexp for end block
"<!--"
nxml-forward-element
nil))
#+END_SRC
* CSVs
#+BEGIN_SRC emacs-lisp
(use-package csv-mode