From: Hugo Villeneuve Date: Wed, 14 Jan 2015 21:38:20 +0000 (-0500) Subject: Configure emacs to use sgml mode for XML and XSL files X-Git-Url: http://gitweb.hugovil.com/?a=commitdiff_plain;h=ac7e7609eac8590a017ff18a75e8d711c9f56c01;p=hvlinux.git Configure emacs to use sgml mode for XML and XSL files --- 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.