[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/embark ca79673: Bind default action to both [13] and [r
From: |
ELPA Syncer |
Subject: |
[elpa] externals/embark ca79673: Bind default action to both [13] and [return] |
Date: |
Sat, 11 Dec 2021 12:57:21 -0500 (EST) |
branch: externals/embark
commit ca796732c1362f8289646eca08734dd717daf0aa
Author: Omar Antolín <omar.antolin@gmail.com>
Commit: Omar Antolín <omar.antolin@gmail.com>
Bind default action to both [13] and [return]
It's annoying to have the enter key not run the default action...
---
embark.el | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/embark.el b/embark.el
index 1ec9b0b..76a3394 100644
--- a/embark.el
+++ b/embark.el
@@ -927,8 +927,10 @@ relative path."
"Return action keymap for targets of given TYPE.
If CYCLE is non-nil bind `embark-cycle'."
(make-composed-keymap
- (let ((map (make-sparse-keymap)))
- (define-key map [13] (embark--default-action type))
+ (let ((map (make-sparse-keymap))
+ (default-action (embark--default-action type)))
+ (define-key map [13] default-action)
+ (define-key map [return] default-action)
(when-let ((cycle-key (and cycle (embark--cycle-key))))
(define-key map cycle-key #'embark-cycle))
(when embark-help-key
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [elpa] externals/embark ca79673: Bind default action to both [13] and [return],
ELPA Syncer <=