feat(lang): Add config for nxml-mode

This commit is contained in:
2020-01-28 21:48:30 +00:00
parent d4ee9cc0ab
commit 1469865826
2 changed files with 28 additions and 0 deletions

View File

@@ -160,6 +160,7 @@
(require 'siren-thrift)
(require 'siren-typescript)
(require 'siren-web-mode)
(require 'siren-xml)
(require 'siren-yaml)
(provide 'siren-core-modules)

View File

@@ -0,0 +1,27 @@
;;; siren-xml.el --- jimeh's Emacs Siren: XML editing configuration.
;;; Commentary:
;; Basic configuration for XML editing.
;;; Code:
(require 'siren-prettier-js)
(require 'siren-prog-mode)
(use-package nxml-mode
:ensure nil ;; loaded from emacs built-ins
:hook (nxml-mode . siren-xml-setup)
:custom
(nxml-attribute-indent 2)
(nxml-child-indent 2)
:init
(defun siren-xml-setup ()
(run-hooks 'prog-mode-hook)
(setq tab-width 2)
(prettier-js-mode)))
(provide 'siren-xml)
;;; siren-xml.el ends here