dot/emacs: Turn on Magit extensions based on Git config.
authorMark Wooding <mdw@distorted.org.uk>
Thu, 28 Mar 2013 00:02:38 +0000 (00:02 +0000)
committerMark Wooding <mdw@distorted.org.uk>
Sat, 30 Mar 2013 19:53:25 +0000 (19:53 +0000)
Add a `magit.extension = FOO' line to the repository's Git config to
make the magic happen.

dot/emacs

index fbfd3db..54bb325 100644 (file)
--- a/dot/emacs
+++ b/dot/emacs
@@ -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)))