Move ESC keybind for transient to tools/magit
This commit is contained in:
parent
6f32ac371b
commit
9567b1f97f
2 changed files with 5 additions and 3 deletions
|
@ -462,8 +462,7 @@
|
||||||
"C-j" nil
|
"C-j" nil
|
||||||
"C-k" nil)
|
"C-k" nil)
|
||||||
(:map transient-map
|
(:map transient-map
|
||||||
[escape] #'transient-quit-one
|
"q" #'transient-quit-one))
|
||||||
"q" #'transient-quit-one))
|
|
||||||
|
|
||||||
(:when (featurep! :tools gist)
|
(:when (featurep! :tools gist)
|
||||||
:after gist
|
:after gist
|
||||||
|
|
|
@ -39,7 +39,10 @@ It is passed a user and repository name.")
|
||||||
#'hide-mode-line-mode)
|
#'hide-mode-line-mode)
|
||||||
|
|
||||||
;; properly kill leftover magit buffers on quit
|
;; 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
|
(def-package! forge
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue