diff options
author | Kyle Meyer <kyle@kyleam.com> | 2016-06-29 20:38:50 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2016-06-29 20:38:50 -0400 |
commit | 6c1a913818b3be52ad96c32ee08e3f7dc2f43b6f (patch) | |
tree | 0cd744bde73ba84a54b19676bcebb798b5ab0ca0 /lisp | |
parent | 2c149f17ab3f6a0441e4f185b2bf96611dab4984 (diff) | |
download | emacs.d-6c1a913818b3be52ad96c32ee08e3f7dc2f43b6f.tar.gz |
Add magit-status variant
Diffstat (limited to 'lisp')
-rw-r--r-- | lisp/km-magit.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/lisp/km-magit.el b/lisp/km-magit.el index 5edfbb4..9455237 100644 --- a/lisp/km-magit.el +++ b/lisp/km-magit.el @@ -26,6 +26,18 @@ (require 'magit) (require 'projectile) +(defun km/magit-status (&optional default-display) + "Like `magit-status', but change the meaning of the prefix argument. +If DEFAULT-DISPLAY is non-nil, use +`magit-display-buffer-traditional' as the value for +`magit-display-buffer-function'." + (interactive "P") + (let ((magit-display-buffer-function (if default-display + #'magit-display-buffer-traditional + magit-display-buffer-function)) + (current-prefix-arg nil)) + (call-interactively #'magit-status))) + (defun km/magit-auto-commit () "Commit all changes with \"auto\" commit message. This can be useful for non-source code repos (e.g., Org mode note |