changeset 204:444105c995f1

automode-alist: update Mercurial commit message file regex
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Thu, 03 Sep 2020 20:27:17 -0400
parents 0c58e4b3861d
children 9d8417180819
files dotemacs.el
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/dotemacs.el
+++ b/dotemacs.el
@@ -241,7 +241,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)
+         ("hg-editor-[a-z0-9A-Z]+.commit\\.hg\\.txt\\'" . diff-mode)
          ("evo[A-Z0-9]\\{6\\}\\'" . mail-mode))
        auto-mode-alist))