From ce0321e9f1c425ca65c2796f78a9f04e4c714435 Mon Sep 17 00:00:00 2001 From: Jeremy Dormitzer Date: Mon, 4 Nov 2019 17:08:52 -0500 Subject: [PATCH] Enable hs-minor-mode in xml files --- emacs/init.org | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) diff --git a/emacs/init.org b/emacs/init.org index 946c065..3aaf0d3 100755 --- a/emacs/init.org +++ b/emacs/init.org @@ -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 end block + "