Skip to main content
Share Your Experience: Take the 2024 Developer Survey
15 votes
Accepted

How to get keystrokes displayed in the echo area immediately?

You are looking to adjust the value of the variable echo-keystrokes. You can read its docstring by entering C-h v echo-keystrokes (or M-x describe-variable echo-keystrokes): Documentation: ...
Dan's user avatar
  • 33.1k
15 votes
Accepted

decrease time until "C-x-" shows in echo area after pressing the keys

(setq echo-keystrokes 0.01) will result in near-instantaneous echoing of the keystrokes. Alternatively, you could customize the variable (M-x customize-variable RET echo-keystrokes). The variable ...
aplaice's user avatar
  • 2,196
8 votes
Accepted

How to expand truncated information displayed in the echo area?

These variables may be relevant: eval-expression-print-level and eval-expression-print-length: https://www.gnu.org/software/emacs/manual/html_node/emacs/Lisp-Eval.html See also the variables: ...
lawlist's user avatar
  • 19.2k
8 votes
Accepted

How to direct `M-:`'s value to the current buffer?

use C-u M-: insert the result into current buffer instead of printing it in the echo area. (eval-expression EXP &optional INSERT-VALUE) Evaluate EXP and print value in the echo area. When called ...
南山竹's user avatar
  • 216
8 votes
Accepted

How do I suppress messages in the echo area (e.g. `Fill column set to 80 (was 80)`)?

@NickD answered the question well. But you can also do this, just to inhibit showing messages for set-fill-column: (add-hook 'python-mode-hook (lambda () (setq indent-tabs-mode ...
Drew's user avatar
  • 77.9k
7 votes
Accepted

Inspect message output

M-x view-echo-area-messages RET or C-h e will open the *Messages* buffer. (This buffer can even contain some stuff that's not shown in the minibuffer, see inhibit-message.)
unhammer's user avatar
  • 1,159
7 votes
Accepted

How to stop Emacs from blinking?

You probably have the variable visible-bell set to a non-nil value (have a look at the manual node on Beeping for more information). Here's the docstring: Documentation: Non-nil means try to ...
Dan's user avatar
  • 33.1k
6 votes
Accepted

how to display target of an org-mode link in the echo area or as tooltip?

tl;dr: do M-x customize-variable for the variable help-at-pt-display-when-idle and set its value to t. (Or "always", which is what the Customize buffer says.) What was initially confusing here is ...
Dan Drake's user avatar
  • 625
6 votes
Accepted

How to suppress `When done with a buffer, type C-x #` warning message?

The only way to avoid that message with Emacs earlier than 28.1 is to invoke emacsclient with the -n (--nowait) option. Starting with Emacs 28.1 (basically, current upstream at the time of writing), ...
NickD's user avatar
  • 30.6k
6 votes

How to prevent displaying "Quit" when pressing C-g?

The main job of C-g (keyboard-quit) is to raise the quit signal. The message “Quit” comes from the error-message property of the symbol quit. You can make this an empty string: (put 'quit 'error-...
Gilles 'SO- stop being evil''s user avatar
4 votes
Accepted

Can I focus the echo area when there’s no prompt?

The echo area is not really a buffer. It is an area of a window. It is used to display messages and to display the minibuffer (which is a buffer). You cannot "visit" the echo area and select text ...
Drew's user avatar
  • 77.9k
4 votes

How to disable eldoc doc minibuffer?

I solved using this: (setq eldoc-echo-area-use-multiline-p nil)
Pavel P's user avatar
  • 41
4 votes
Accepted

How to Stop Mouse Click in Echo Area from Opening Message Buffer?

STEP 1: Type C-h k and then left mouse click inside the echo area. STEP 2: Read through the *Help* buffer and observe the message that reads: <mouse-1> at that spot runs the command view-echo-...
lawlist's user avatar
  • 19.2k
3 votes
Accepted

What's this line between the modeline and the echo area?

Since you're using my Emacs theme and could be using my emacs.d config, I suspect you have window-divider-mode enabled, which adds this border. You can either: Set the bottom border's width to 0: (...
Henrik's user avatar
  • 350
3 votes
Accepted

Suppress message in minibuffer when a buffer is saved?

You can use following (defmacro with-suppressed-message (&rest body) "Suppress new messages temporarily in the echo area and the `*Messages*' buffer while BODY is evaluated." (declare (indent ...
Haruyasu Ueda's user avatar
3 votes

Suppress message in minibuffer when a buffer is saved?

There is a var named save-silently in files.el. if you set the var to t I think the message will not show again. (defvar save-silently nil "If non-nil, avoid messages when saving files. Error-...
carlos's user avatar
  • 161
3 votes
Accepted

How to show a message in the echo area not immediately but after a certain delay and to disappear it after a certain delay

You could try something like: (run-with-timer 2 nil (lambda () (message "Some message") (run-with-timer 3 nil (lambda () (message nil)...
Stuart Hickinbottom's user avatar
3 votes
Accepted

Problems with inhibit-message

Your confusion is on account of using C-xC-e C-x C-e runs the command eval-last-sexp (found in global-map), which is an interactive compiled Lisp function in ‘elisp-mode.el’. It is bound to ...
phils's user avatar
  • 51.6k
3 votes

How do I suppress messages in the echo area (e.g. `Fill column set to 80 (was 80)`)?

Regarding the specific example case... set-fill-column is a command which is only intended to be used interactively. To set the fill column programmatically, just do this: (setq fill-column 80) Which ...
phils's user avatar
  • 51.6k
3 votes

command print no results with (interactive "r")

You're confusing the echoing of the return value by M-: with the action of M-x. M-: expressly evaluates a sexp and prints the resulting value. M-x invokes a command. Your command does not, itself, ...
Drew's user avatar
  • 77.9k
2 votes

Taking action depending on the presence of particular message in the echo area

I don't know what you want to accomplish exactly, but as other people pointed out, reading the echo area is not the best strategy. Instead, you probably want to set up a sentinel. Many commands in ...
giordano's user avatar
  • 3,255
2 votes

Multi-line echo area for displaying function signature with semantic-idle-summary-mode

Short answer: The full semantic tags are shown in the minibuffer if semantic-idle-truncate-long-summaries is customized to nil and eldoc-echo-area-use-multiline-p is customized to non-nil. The not so ...
Tobias's user avatar
  • 33.3k
2 votes

Persistent message in the echo area?

I tried the following. It seems to work, but I'm not sure about edge cases, and I'm still testing. The following code displays "foo" in the echo area, and then "bar", and then "hippo", and then "oink"....
HippoMan's user avatar
  • 616
2 votes
Accepted

Prevent showing buffer reversion message while working in the minibuffer

I think you could add something like this to your initialization: (advice-add 'auto-revert-handler :around (lambda (orig-fun &rest args) (let ((auto-revert-verbose (not (minibufferp (...
Gina White's user avatar
2 votes

Prevent showing buffer reversion message while working in the minibuffer

You most probably have set the global autorevert mode on using this form: (global-auto-revert-mode) You can stop it sending messages to minibuffer by setting (setq auto-revert-verbose nil) Set it ...
Heikki's user avatar
  • 3,076
2 votes
Accepted

Can I write Information into the mini-buffer (like an extra mode line)

Yes you can, and there's even a package for that which you can install from GNU ELPA: minibuffer-line
Stefan's user avatar
  • 26.5k
2 votes

suppress command echoes from menu-bar items

This is not a real answer but it describes the current situation. (I hope I got it right.) The following section of keyboard.c is relevant for the mouse event messages: /* If in middle of key ...
Tobias's user avatar
  • 33.3k
2 votes
Accepted

Display define-key output in echo area

What you are doing is defining the key to the result of the evaluation of the expression (display-message-or-buffer (message "`%s'" (eval '(solar-sunrise-sunset-string (calendar-current-date)...
NickD's user avatar
  • 30.6k
2 votes

continue prior message without newline

(let ((msg (concat "Attempting to delete " (nth ix flist) "... "))) (let (message-log-max) (message "%s" msg)) (delete-file (nth ix flist)) (message "%s&...
shynur's user avatar
  • 5,328

Only top scored, non community-wiki answers of a minimum length are eligible