emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/mct cdbffa6 3/3: Document how to make the prompt intang


From: ELPA Syncer
Subject: [elpa] externals/mct cdbffa6 3/3: Document how to make the prompt intangible
Date: Wed, 17 Nov 2021 10:57:22 -0500 (EST)

branch: externals/mct
commit cdbffa6f89cd8f629023a50372f131a17694aaf7
Author: Protesilaos Stavrou <info@protesilaos.com>
Commit: Protesilaos Stavrou <info@protesilaos.com>

    Document how to make the prompt intangible
    
    Copied from the documentation of the Vertico package, by Daniel Mendler:
    <https://github.com/minad/vertico>.
---
 README.org | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/README.org b/README.org
index 79a74e7..5dc8fda 100644
--- a/README.org
+++ b/README.org
@@ -461,6 +461,12 @@ Other useful extras from the Emacs source code (read their 
doc strings):
 (minibuffer-depth-indicate-mode 1)
 (minibuffer-electric-default-mode 1)
 
+;; Do not allow the cursor in the minibuffer prompt
+(setq minibuffer-prompt-properties
+      '(read-only t cursor-intangible t face minibuffer-prompt))
+
+(add-hook 'minibuffer-setup-hook #'cursor-intangible-mode)
+
 ;;; Minibuffer history
 (require 'savehist)
 (setq savehist-file (locate-user-emacs-file "savehist"))



reply via email to

[Prev in Thread] Current Thread [Next in Thread]