From ac7e7609eac8590a017ff18a75e8d711c9f56c01 Mon Sep 17 00:00:00 2001 From: Hugo Villeneuve Date: Wed, 14 Jan 2015 16:38:20 -0500 Subject: [PATCH] Configure emacs to use sgml mode for XML and XSL files --- stage5/misc/emacs/emacsrc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/stage5/misc/emacs/emacsrc b/stage5/misc/emacs/emacsrc index 5777294..913dcab 100644 --- a/stage5/misc/emacs/emacsrc +++ b/stage5/misc/emacs/emacsrc @@ -201,6 +201,10 @@ (add-to-list 'auto-mode-alist '("/ac\\(include\\|local\\)\\.m4\\'" . autoconf-mode)) +;; Default for XSL and XML files. +(add-to-list 'auto-mode-alist '("\\.xsl$" . sgml-mode)) +(add-to-list 'auto-mode-alist '("\\.xml$" . sgml-mode)) + ;; When an Emacs init file gets large or has a lot of function definitions, you ;; should consider compiling it: it will load faster when Emacs starts, and its ;; functions will execute faster. -- 2.20.1