Emacs minibuffer message when entering Cx

Well. When I type the first keys of a key row, emacs writes these keys to the minibuffer after a certain period of time. For example: Input C-x 4will be C-x 4-visible in the minibuffer.

Question: can this be changed? I was thinking of creating something like combining part of the help key (generated C-hwhen entering some keys) with this line. Is it possible to shorten the time interval for waiting for this message? Subroutine?

Edited, new question

A message appears when I exit emacs using C-x C-cand have modified buffers that ask me if I want to save them. How to find out what this message is here? I tried to look (minibuffer-prompt) (minibuffer-contents) (buffer-substring (point-min) (point-max))by selecting (select-window (minibuffer-window)). Nothing gives me results.

+5
source share
3 answers

You can control the time of this help message by setting suggest-key-bindingsto a larger / smaller number.

(setq suggest-key-bindings 5) ; wait 5 seconds

, C execute-extended-command , . anything-complete, execute-extended-command (: ). anything, Emacs.

+1

, echo-keystrokes , , . (emacs) Echo Area Customization:

User Option: echo-keystrokes
     This variable determines how much time should elapse before command
     characters echo.  Its value must be an integer or floating point
     number, which specifies the number of seconds to wait before
     echoing.  If the user types a prefix key (such as `C-x') and then
     delays this many seconds before continuing, the prefix key is
     echoed in the echo area.  (Once echoing begins in a key sequence,
     all subsequent characters in the same key sequence are echoed
     immediately.)

     If the value is zero, then command input is not echoed.
+7

, .

(require 'keylist), .emacs .

,

(not cursor-in-echo-area)
(not (minibufferp))
(not (= 13 (aref (this-command-keys-vector) 0)))

, . , , - -. C-x C-c , cursor-in-echo-area .

The last line (= 13 (aref (this-command-keys-vector) 0))is the funniest. It is used to trap things like query-replace. When creating a rank (this-command-keys-vector), it shows that it RETis the first key pressed, then the keys of your choice (y, n). Since I don't have key sequences starting with RET, I'm fine with that.

0
source

All Articles