changeset 187:0d9b78e20f77

auto-mode-alist: add commit message buffers to diff mode Now that I've finally figured out how to make commit message buffers show real diffs without a problem, it totally works to set those buffers to diff mode.
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Wed, 13 Feb 2019 15:21:42 -0500
parents 1aa716048fa0
children cf476cceb7b2
files dotemacs.el
diffstat 1 files changed, 1 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/dotemacs.el
+++ b/dotemacs.el
@@ -196,6 +196,7 @@
          ("\\.php\\'" . web-mode) ;; Default php mode isn't as good
          ("\\.?hgrc\\'"  . conf-mode)
          ("\\.spec\\'" . rpm-spec-mode)
+         ("hg-editor-.\\{6\\}\\.commit\\.hg\\.txt\\'" . diff-mode)
          ("evo[A-Z0-9]\\{6\\}\\'" . mail-mode))
        auto-mode-alist))