[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct 769b1a8 02/70: Use remap where applicable
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct 769b1a8 02/70: Use remap where applicable |
Date: |
Thu, 11 Nov 2021 03:57:40 -0500 (EST) |
branch: externals/mct
commit 769b1a832830dc5dfe3843bbf2ac2bc9ee47dc9a
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Use remap where applicable
To avoid manually copying conventional key bindings into
mct-completion-list-mode-map and mct-minibuffer-local-completion-map,
we use remap to inherit whatever a local configuration may also use in
addition to the default bindings.
---
mct.el | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/mct.el b/mct.el
index cc1f246..4590a92 100644
--- a/mct.el
+++ b/mct.el
@@ -645,18 +645,16 @@ To be assigned to `minibuffer-setup-hook'."
(let ((map (make-sparse-keymap)))
(define-key map (kbd "<tab>") #'choose-completion)
(define-key map (kbd "M-v") #'scroll-down-command)
- (define-key map (kbd "M-g M-g") #'mct-choose-completion-number)
+ (define-key map [remap goto-line] #'mct-choose-completion-number)
(define-key map (kbd "M-e") #'mct-edit-completion)
- (define-key map (kbd "C-g") #'mct-keyboard-quit-dwim)
- (define-key map (kbd "C-n") #'mct-next-completion-or-mini)
+ (define-key map [remap keyboard-quit] #'mct-keyboard-quit-dwim)
+ (define-key map [remap next-line] #'mct-next-completion-or-mini)
(define-key map (kbd "n") #'mct-next-completion-or-mini)
- (define-key map (kbd "<down>") #'mct-next-completion-or-mini)
- (define-key map (kbd "C-p") #'mct-previous-completion-or-mini)
+ (define-key map [remap previous-line] #'mct-previous-completion-or-mini)
(define-key map (kbd "p") #'mct-previous-completion-or-mini)
- (define-key map (kbd "<up>") #'mct-previous-completion-or-mini)
(define-key map (kbd "<return>") #'mct-choose-completion-exit)
(define-key map (kbd "<M-return>") #'mct-choose-completion-dwim)
- (define-key map (kbd "M-<") #'mct-beginning-of-buffer)
+ (define-key map [remap beginning-of-buffer] #'mct-beginning-of-buffer)
map)
"Derivative of `completion-list-mode-map'.")
@@ -664,7 +662,7 @@ To be assigned to `minibuffer-setup-hook'."
(let ((map (make-sparse-keymap)))
(define-key map (kbd "C-j") #'exit-minibuffer)
(define-key map (kbd "<tab>") #'minibuffer-force-complete)
- (define-key map (kbd "M-g M-g") #'mct-choose-completion-number)
+ (define-key map [remap goto-line] #'mct-choose-completion-number)
(define-key map (kbd "M-e") #'mct-edit-completion)
(define-key map (kbd "C-n") #'mct-switch-to-completions-top)
(define-key map (kbd "<down>") #'mct-switch-to-completions-top)
- [elpa] branch externals/mct created (now b5f4222), ELPA Syncer, 2021/11/11
- [elpa] externals/mct 2d77307 04/70: Add "Acknowledgements" section to the manual, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 144a32f 05/70: Add internal function to show completions, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 769b1a8 02/70: Use remap where applicable,
ELPA Syncer <=
- [elpa] externals/mct 6bd2457 03/70: Ensure that display-line-numbers-mode is bound, ELPA Syncer, 2021/11/11
- [elpa] externals/mct cc8a5c1 09/70: Mention temp-buffer-resize-mode in the docs, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 91586c4 10/70: Fix documentation about manual install method, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 79b2643 07/70: Remove unused user-error message, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 609fd0a 12/70: Move findex and vindex annotations to their actual mentions, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 4882ed6 17/70: Note display-buffer in mct-display-buffer-action, ELPA Syncer, 2021/11/11
- [elpa] externals/mct e75a6c6 19/70: Update mct-display-buffer-action with sample conf, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 982b4ee 20/70: Note mct-completions-format needs mct-mode restart, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 1b0ab0b 21/70: Untabify and re-indent, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 5c0e138 22/70: Recompile texi/info manuald, ELPA Syncer, 2021/11/11