[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/mct c36c7e8 11/70: Add new option mct-live-completion
From: |
ELPA Syncer |
Subject: |
[elpa] externals/mct c36c7e8 11/70: Add new option mct-live-completion |
Date: |
Thu, 11 Nov 2021 03:57:41 -0500 (EST) |
branch: externals/mct
commit c36c7e88581e04ebd9526f9221f07ba79216d9d2
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Protesilaos Stavrou <info@protesilaos.com>
Add new option mct-live-completion
For users who prefer to reduce the "visual noise" generated by
mct-mode. When setting mct-live-completion to nil, the *Completions*
buffer is only displayed when requested (eg. C-l, C-n, C-p).
---
README.org | 6 ++++++
mct.el | 11 +++++++++++
2 files changed, 17 insertions(+)
diff --git a/README.org b/README.org
index a89ebd1..014462d 100644
--- a/README.org
+++ b/README.org
@@ -64,6 +64,7 @@ modify this GNU manual.”
:END:
#+cindex: Overview of features
#+findex: mct-choose-completion-number
+#+vindex: mct-live-completion
#+vindex: mct-minimum-input
#+vindex: mct-live-update-delay
#+vindex: mct-completion-blocklist
@@ -102,6 +103,11 @@ a blocklist and a passlist for commands are on offer:
buffer for the designated command without accounting for the minimum
input threshold.
+To inhibit live completion in the first place, ~mct-live-completion~
+can be set to nil. Given this customization, the Completions' buffern
+is only displayed when requested manually. ~mct-completion-passlist~
+takes precedence over this option.
+
Other customisations:
+ ~mct-hide-completion-mode-line~ to hide the mode line of the
diff --git a/mct.el b/mct.el
index e457057..7c294ac 100644
--- a/mct.el
+++ b/mct.el
@@ -71,6 +71,16 @@ Only works when variable `file-name-shadow-mode' is non-nil."
:type 'boolean
:group 'mct)
+(defcustom mct-live-completion t
+ "Automatically display the Completions buffer.
+
+When disabled, the user has to manually request completions,
+using the regular activating commands. Note that
+`mct-completion-passlist' overrides this option, while taking
+precedence over `mct-completion-blocklist'."
+ :type 'boolean
+ :group 'mct)
+
(defcustom mct-minimum-input 3
"Live update completions when input is >= N.
@@ -257,6 +267,7 @@ Meant to be added to `after-change-functions'."
(setq-local mct-live-update-delay 0)
(mct--show-completions)
(add-hook 'after-change-functions #'mct--live-completions nil t))
+ ((null mct-live-completion))
((unless (member this-command mct-completion-blocklist)
(add-hook 'after-change-functions #'mct--live-completions-timer nil
t)))))
- [elpa] externals/mct 4882ed6 17/70: Note display-buffer in mct-display-buffer-action, (continued)
- [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
- [elpa] externals/mct 45c272e 25/70: Add a .dir-locals.el file, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 295bac0 28/70: Generate mct.info and mct.texi using a Makefile, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 789174f 31/70: Update sample code with useful built-in extras, ELPA Syncer, 2021/11/11
- [elpa] externals/mct a55130a 06/70: Avoid hardcoding the "Completions" string, ELPA Syncer, 2021/11/11
- [elpa] externals/mct b392b0b 15/70: Allow for completions-format to be configured by the user, ELPA Syncer, 2021/11/11
- [elpa] externals/mct c36c7e8 11/70: Add new option mct-live-completion,
ELPA Syncer <=
- [elpa] externals/mct 1084f58 16/70: Clarify mct-live-completion doc string, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 310cc42 01/70: Initial commit, ELPA Syncer, 2021/11/11
- [elpa] externals/mct ccce90d 08/70: Make line number selection always exit minibuffer, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 436b24e 13/70: Allow customizing how the Completions buffer is displayed, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 9e0d523 18/70: Change default value of mct-display-buffer-action, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 51c1e17 23/70: Reuse existing Completions' before re-displaying, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 0d98ba7 30/70: Include mct-display-buffer-action in the manual, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 08f806e 29/70: Do not set completions-detailed, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 25f876c 34/70: Do not use line-based completion in grid views, ELPA Syncer, 2021/11/11
- [elpa] externals/mct 8522a67 38/70: Add mct-choose-completion-no-exit command, ELPA Syncer, 2021/11/11