From 7638c36ec3fd684d78891bb61ee2c828f5866f7c Mon Sep 17 00:00:00 2001 From: Alexander Rosenberg Date: Fri, 20 Oct 2023 14:21:20 -0700 Subject: [PATCH] Fix nxml-mode --- init.el | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/init.el b/init.el index afcab6b..e898bc6 100644 --- a/init.el +++ b/init.el @@ -534,6 +534,17 @@ COMMAND and COMINT are like `compile'." (when (not my/project-run-command) (setq my/project-run-command command))))) +;; nxml +(use-package nxml-mode + :ensure nil + :hook (nxml-mode . my/-nxml-setup) + :init + (defun my/-nxml-setup () + "Setup `nxml-mode'." + (sgml-electric-tag-pair-mode 1) + (setq-local completion-at-point-functions + '(rng-completion-at-point cape-file)))) + ;; rust (use-package rust-mode)