dot/emacs: Clean up the regexp for Debian `changelog' files.
[profile] / dot / emacs
index fbfd3db..7c2e73f 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
@@ -46,8 +46,8 @@
      (add-to-list 'auto-mode-alist
                  `(,(concat "/debian/"
                               "\\("
-                                "[" "[:lower:][:digit:]]"
-                                    "[[:lower:][:digit:].+-" "]+"
+                                "[" "[:lower:]" "[:digit:]" "]"
+                                "[" "[:lower:]" "[:digit:]" ".+-" "]+"
                                 "\\."
                               "\\)?"
                               "changelog\\'")
@@ -60,6 +60,7 @@
      (setq vc-handled-backends (cons 'GIT vc-handled-backends)))
 
 (setq magit-log-cutoff-length 512)
+(add-hook 'magit-mode-hook 'magit-load-config-extensions)
 
 (trap (or mdw-fast-startup (require 'p4)))