branch: externals/mct commit cdbffa6f89cd8f629023a50372f131a17694aaf7 Author: Protesilaos Stavrou <i...@protesilaos.com> Commit: Protesilaos Stavrou <i...@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"))