summaryrefslogtreecommitdiff
path: root/init.el
diff options
context:
space:
mode:
authorKyle Meyer <kyle@kyleam.com>2016-03-20 22:26:37 -0400
committerKyle Meyer <kyle@kyleam.com>2016-03-20 22:26:37 -0400
commit8228c37d3e319d50de92270c4574142eee83da5d (patch)
tree579196b19b3e08d19b3353fb25c578544532a5ea /init.el
parent1e16493f7f40c9bc5b9bd750849419153699f603 (diff)
downloademacs.d-8228c37d3e319d50de92270c4574142eee83da5d.tar.gz
Move magit-popup configuration to its own section
Diffstat (limited to 'init.el')
-rw-r--r--init.el20
1 files changed, 12 insertions, 8 deletions
diff --git a/init.el b/init.el
index 770c872..8d20af2 100644
--- a/init.el
+++ b/init.el
@@ -809,6 +809,18 @@
:load-path "~/src/emacs/with-editor/"
:defer t)
+(use-package magit-popup
+ :load-path "~/src/emacs/magit/lisp/"
+ :defer t
+ :config
+ (setq magit-popup-show-help-echo nil
+ magit-popup-show-common-commands nil
+ magit-popup-use-prefix-argument 'default)
+
+ (bind-keys :map magit-popup-mode-map
+ ("SPC <t>" . magit-invoke-popup-switch)
+ ("SPC SPC <t>" . magit-invoke-popup-option)))
+
(use-package magit
:load-path "~/src/emacs/magit/lisp/"
:defer t
@@ -835,9 +847,6 @@
magit-buffer-name-format "*%M%v: %t*")
(setq magit-no-confirm '(stage-all-changes unstage-all-changes reverse))
- (setq magit-popup-show-help-echo nil
- magit-popup-show-common-commands nil
- magit-popup-use-prefix-argument 'default)
(setq magit-branch-arguments
(delete "--track" magit-branch-arguments))
(setq magit-patch-popup
@@ -873,11 +882,6 @@
(bind-keys :map km/magit-map
("l" . magit-toggle-buffer-lock))
- (define-key magit-popup-mode-map (kbd "SPC <t>")
- #'magit-invoke-popup-switch)
- (define-key magit-popup-mode-map (kbd "SPC SPC <t>")
- #'magit-invoke-popup-option)
-
(magit-define-popup-action 'magit-diff-popup
?e "Edit options" #'magit-diff-refresh-popup)