From 9567b1f97fb640d7c70eda48067e3cada9ce6e81 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 20 Feb 2019 14:45:18 -0500 Subject: [PATCH] Move ESC keybind for transient to tools/magit --- modules/config/default/+evil-bindings.el | 3 +-- modules/tools/magit/config.el | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/modules/config/default/+evil-bindings.el b/modules/config/default/+evil-bindings.el index dea361968..4ddb344b5 100644 --- a/modules/config/default/+evil-bindings.el +++ b/modules/config/default/+evil-bindings.el @@ -462,8 +462,7 @@ "C-j" nil "C-k" nil) (:map transient-map - [escape] #'transient-quit-one - "q" #'transient-quit-one)) + "q" #'transient-quit-one)) (:when (featurep! :tools gist) :after gist diff --git a/modules/tools/magit/config.el b/modules/tools/magit/config.el index bccf6162d..483b65bb8 100644 --- a/modules/tools/magit/config.el +++ b/modules/tools/magit/config.el @@ -39,7 +39,10 @@ It is passed a user and repository name.") #'hide-mode-line-mode) ;; properly kill leftover magit buffers on quit - (define-key magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit)) + (define-key magit-status-mode-map [remap magit-mode-bury-buffer] #'+magit/quit) + + ;; Close transient with ESC + (define-key transient-map [escape] #'transient-quit-one)) (def-package! forge