From ed1ae3f43c0fdac904945e85d0b8a51ea517877b Mon Sep 17 00:00:00 2001 From: Pierre Neidhardt Date: Fri, 22 Jan 2021 21:58:25 +0100 Subject: [PATCH] EXWM: Bind s-v to helm-selector-magit. --- .emacs.d/lisp/init-exwm.el | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.emacs.d/lisp/init-exwm.el b/.emacs.d/lisp/init-exwm.el index 838defbb..07c1d3c2 100644 --- a/.emacs.d/lisp/init-exwm.el +++ b/.emacs.d/lisp/init-exwm.el @@ -99,7 +99,11 @@ (exwm-input-set-key (kbd "s-E") #'helm-selector-eww-other-window)) (when (fboundp 'magit-status) - (exwm-input-set-key (kbd "s-v") #'magit-status)) + (if (require 'helm-selector-magit nil :noerror) + (progn + (exwm-input-set-key (kbd "s-v") #'helm-selector-magit) + (exwm-input-set-key (kbd "s-V") #'magit-status)) + (exwm-input-set-key (kbd "s-v") #'magit-status))) (when (fboundp 'emms-all) (exwm-input-set-key (kbd "s-a") #'emms-smart-browse) (exwm-input-set-key (kbd "S-s-") #'emms-pause)