[magit] show diff of changes when committing
authorAmin Bandali <me@aminb.org>
Mon, 9 Mar 2015 04:26:34 +0000 (00:26 -0400)
committerAmin Bandali <me@aminb.org>
Mon, 9 Mar 2015 04:27:39 +0000 (00:27 -0400)
https://emacs.stackexchange.com/questions/3893/how-can-i-make-verbose-flag-be-enabled-by-default-in-magit-commit-screen

spacemacs/.spacemacs

index b2e5392..bd4f130 100644 (file)
@@ -123,6 +123,10 @@ layers configuration."
             " "
             (mode-io-correlate "%n:1:%t ")
             "%o"))))
+
+  (advice-add #'magit-key-mode-popup-committing :after
+              (lambda ()
+                (magit-key-mode-toggle-option (quote committing) "--verbose")))
 )
 
 ;; Do not write anything past this comment. This is where Emacs will