[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct 298a83cfc5 17/64: Respin the mct setup for in-regio
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct 298a83cfc5 17/64: Respin the mct setup for in-region scenario (WIP) |
Date: |
Thu, 30 Dec 2021 23:57:53 -0500 (EST) |
branch: externals/mct
commit 298a83cfc5615e7697f0cb0d3c6449091ac545b0
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Respin the mct setup for in-region scenario (WIP)
---
mct.el | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/mct.el b/mct.el
index 7c30e3ec7d..4a073f57d0 100644
--- a/mct.el
+++ b/mct.el
@@ -1241,6 +1241,19 @@ current completion session."
(use-local-map
(make-composed-keymap mct-region-completion-list-mode-map
(current-local-map))))
+
+(defun mct--region-setup-completion-list ()
+ "Set up the completion-list for Mct."
+ (when (mct--region-p)
+ (setq-local completion-show-help nil)
+ (mct--setup-clean-completions)
+ (mct--setup-appearance)
+ (mct--region-setup-completion-list-keymap)
+ (mct--setup-silent-line-truncation)
+ (mct--setup-highlighting)
+ (mct--setup-line-numbers)
+ (cursor-sensor-mode)))
+
;;;###autoload
(define-minor-mode mct-region-mode
"Set up interactivity over the default `completion-in-region'."
@@ -1254,7 +1267,7 @@ current completion session."
(if mct-region-mode
(progn
(advice-add #'completion--done :around #'mct--region-completion-done)
- (add-hook 'completion-list-mode-hook #'mct--setup-completion-list)
+ (add-hook 'completion-list-mode-hook
#'mct--region-setup-completion-list)
(add-hook 'completion-in-region-mode-hook
#'mct--region-setup-completion-in-region)
(advice-add #'display-completion-list :around
#'mct--display-completion-list-advice)
(advice-add #'minibuffer-message :around #'mct--honor-inhibit-message)
@@ -1263,7 +1276,7 @@ current completion session."
(define-key map (kbd "C-n") #'mct-switch-to-completions-top)
(define-key map (kbd "C-p") #'mct-switch-to-completions-bottom)))
(advice-remove #'completion--done #'mct--region-completion-done)
- (remove-hook 'completion-list-mode-hook #'mct--setup-completion-list)
+ (remove-hook 'completion-list-mode-hook
#'mct--region-setup-completion-list)
(remove-hook 'completion-in-region-mode-hook
#'mct--region-setup-completion-in-region)
(advice-remove #'display-completion-list
#'mct--display-completion-list-advice)
(advice-remove #'minibuffer-message #'mct--honor-inhibit-message)
- [elpa] externals/mct cf99cc1f5c 12/64: Define placeholder predicate for in-region mode, (continued)
- [elpa] externals/mct cf99cc1f5c 12/64: Define placeholder predicate for in-region mode, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 92680c1091 05/64: completion--done: Attempt to teardown completion in region properly, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 6cd3b20a83 09/64: Add TODO on binding TAB in region, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 555b481fe0 03/64: First steps towards Orderless support, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 5ad44174c8 16/64: Introduce mct-region keymap for completions (WIP), ELPA Syncer, 2021/12/30
- [elpa] externals/mct 788aeafb04 19/64: Rename the minibuffer mode, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 6222731289 10/64: Add new FIXME to exit region completion cleanly, ELPA Syncer, 2021/12/30
- [elpa] externals/mct c79f8c86c9 07/64: Take note of more issues with completion-in-region, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 0d7d64d79a 15/64: Add in-region version of choose-completion, ELPA Syncer, 2021/12/30
- [elpa] externals/mct adeddd2dfe 14/64: Write helper for "choose completion" routine, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 298a83cfc5 17/64: Respin the mct setup for in-region scenario (WIP),
ELPA Syncer <=
- [elpa] externals/mct 0362ca4bf1 34/64: Rename symbol for consistency, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 28d7c54f51 44/64: Add debug print to monitor completion-in-region-mode, ELPA Syncer, 2021/12/30
- [elpa] externals/mct bf0f666ee4 49/64: Replace "mct-mode" with "mct-minibuffer-mode", ELPA Syncer, 2021/12/30
- [elpa] externals/mct aaaf12c70c 50/64: Merge branch 'main' into experiment-completion-in-region, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 775f42951d 02/64: Remove mct--region-current-buffer, ELPA Syncer, 2021/12/30
- [elpa] externals/mct fb177ace70 18/64: Keep "next or mini" intact (we'll use another fn), ELPA Syncer, 2021/12/30
- [elpa] externals/mct f3d86fe28a 06/64: Rename internal function, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 72a1c3e6f4 22/64: Minor changes to doc strings, ELPA Syncer, 2021/12/30
- [elpa] externals/mct dedb62cce5 23/64: Implement next/prev candidate or quit completions, ELPA Syncer, 2021/12/30
- [elpa] externals/mct 6bb328a795 24/64: Merge branch 'main' into experiment-completion-in-region, ELPA Syncer, 2021/12/30