diff options
author | Kyle Meyer <kyle@kyleam.com> | 2017-05-20 11:26:10 -0400 |
---|---|---|
committer | Kyle Meyer <kyle@kyleam.com> | 2017-05-20 11:26:10 -0400 |
commit | 52274375fe2a13fc0a246d6ae8c9b073e602ac4a (patch) | |
tree | ea20ad9bd3c1271188493d5861963fa1a3996f0a | |
parent | 615324c70acea91165f0121cebd0c5ad4d5a2e28 (diff) | |
download | emacs.d-52274375fe2a13fc0a246d6ae8c9b073e602ac4a.tar.gz |
Set new magit-use-sticky-arguments option to `current'
... and retire workaround.
-rw-r--r-- | init.el | 20 |
1 files changed, 1 insertions, 19 deletions
@@ -925,6 +925,7 @@ magit-update-other-window-delay 0.1 magit-revision-show-gravatars nil magit-revision-insert-related-refs nil + magit-use-sticky-arguments 'current magit-log-show-refname-after-summary t magit-log-section-arguments nil) @@ -1011,25 +1012,6 @@ (magit-change-popup-key 'magit-branch-popup :action ?s ?v) - (defun km/magit-mode-kill-hidden (mode) - (let ((buffer (magit-mode-get-buffer mode))) - (unless (or (not buffer) - (get-buffer-window buffer) - (derived-mode-p mode)) - (kill-buffer buffer)))) - - (advice-add 'magit-log-popup - :before - (lambda (&rest _) - (km/magit-mode-kill-hidden 'magit-log-mode)) - '((name . "magit-log-kill-previous"))) - (advice-add 'magit-diff-popup - :before - (lambda (&rest _) - (km/magit-mode-kill-hidden 'magit-diff-mode)) - '((name . "magit-diff-kill-previous"))) - - (advice-add 'magit-diff-while-committing :around |