Questions tagged [minibuffer]

The minibuffer is a part of Emacs used to read in complex commands or arguments.

Filter by
Sorted by
Tagged with
1
vote
1answer
164 views

Is there a hook for a recursive minibuffer setup?

I have this code: (minibuffer-with-setup-hook #'ivy--minibuffer-setup (read-from-minibuffer ;; ... )) It works fine unless the code is called when already in the minibuffer. In that case ...
4
votes
1answer
115 views

subword-mode in minibuffer?

I use subword-mode when I'm editing Python and C++ code, and it's jarring when deleting a word backwards/forwards (Ctrl+Space and Ctrl+Delete) works one way in the source code buffer and a different ...
4
votes
2answers
251 views

How to get back to minibuffer during an interactive search?

This might be a trivial issue, but here goes: I like to search (C-s or M-C-s for regexp search) often, and I want to be able to search in the buffer I'm in - jumping up and down (C-r, C-s) between ...
6
votes
2answers
1k views

How do you disable the buffer end/beginning warnings in the minibuffer?

I see that I can do something like this: (defun limit-warnings () (set (make-local-variable 'warning-minimum-level) 'fatal)) (add-hook 'minibuffer-setup-hook 'disable-warnings) (Sorry for syntax ...
5
votes
1answer
107 views

Specifying how history is managed for each buffer

After editing a couple of encrypted files with Emacs and EasyPG Assistant I realized that parts of those files were still stored in various lists within Emacs, e.g the kill-ring and the minibuffer ...
1
vote
0answers
42 views

wildcard expansion in buffer

I'm debugging with pdb in emacs and one of the parameters to the program I'm debugging is a list of regular expressions wrapped in quotes. Basically, pdb someProgram.py 'regex .* .*' from the ...
1
vote
1answer
197 views

mu4e overwrites minibuffer output when switching buffers

I'm using mu4e for email and I really like it. The only time it annoys me is when I'm switching buffers and I want to see a list of suggested buffer names in the echo area / minibuffer, because mu4e ...
3
votes
1answer
173 views

Minibuffer function bindings

Many times, i use commands like M-x what-face to get the font face for character under cursor, (or) M-x find-function-on-key to get the key bindings for a key sequence. These functions work on the ...
9
votes
2answers
847 views

Transiently adjust text size in mode line and minibuffer?

When working with others around a shared monitor or via screen-sharing (e.g. Google Hangout), I often use text-scale-adjust (C-x C-+) to let others more easily read my screen. I would love to be able ...
10
votes
1answer
901 views

How to cancel the minibuffer from the main buffer

Suppose that I do M-x blabla without pressing return and then I switch to the main buffer. If the curser is at minibuffer I can cancel the mini-buffer by the shortcut C-g. But if the cursor is at the ...
0
votes
0answers
141 views

What's the mode hook for dired's minibuffer?

Starting dired with M-x dired and hitting M-x dired-create-directory I am now in a mini-buffer. Which mode-hook do I use to set a keybinding for the mini-buffer?
3
votes
2answers
99 views

How to bind a key inside the completing-read prompt?

In one of my packages, I use a loop with completing-read to query the user for a list of words. Inside the prompt, I'd like to bind DEL to a different command. How can I achieve that? The solution ...
3
votes
1answer
314 views

Additional binding for keyboard-quit doesn't work with minibuffer

I set (global-set-key (kbd "H-g") 'keyboard-quit). When the minibuffer is open and waiting for input, and I want to quit out of it, when I hit H-g, the bell rings and I see the Quit message, but the ...
9
votes
3answers
1k views

Send process output to *Messages* buffer, but bypass the echo area

Is it possible to send the output from a process-filter to the *Messages* buffer and suppress that message output from appearing in the echo area, such that I am able to simultaneously use interactive ...
1
vote
1answer
131 views

Simulating before-minibuffer-hook

I need a function to execute before the minibuffer is entered, not after (minibuffer-setup-hook style). Is there any way I can achieve this effect with advice or other emacs systems? I would like to ...
5
votes
1answer
358 views

Use thing-at-point for isearch and minibuffer commands

How can I insert some text (thing) at point from the buffer into the minibuffer at a text prompt or during an incremental search? Is there a convenient way to insert, e.g., the sexp around point?
7
votes
1answer
218 views

Access minibuffer history without using arrow keys

Is it possible to scroll the minibuffer history without using arrow keys? My preference would be to not have my fingers leave the home row.
10
votes
4answers
504 views

How can I read a single character from the minibuffer?

When part of a defun, (interactive "c(C)hoose (A)n (O)ption") will prompt the user for a single character; RET is not required. How can I replicate this reading behavior without the need for ...
4
votes
1answer
406 views

How can I remap keys in the minibuffer?

I thought I could just use minibuffer-local-map but it isn't working. With emacs -Q I eval: (define-key minibuffer-local-map (kbd "TAB") nil) Then open up M-: and hit C-h c TAB and it says TAB runs ...
11
votes
2answers
881 views

Display the beginning of a scope when it is out of screen

I would like to display the opening part of a scope when this one get out of screen. Example: namespace a { ... --------------------- <- display frame ... | }* ...
9
votes
2answers
844 views

Can I change the background color of the inactive minibuffer?

I tried it with the following settings: (add-hook 'minibuffer-setup-hook (lambda () (make-local-variable 'face-remapping-alist) (add-to-list 'face-remapping-alist '(default (:...
5
votes
1answer
628 views

Case-insensitive filename completion in `shell-command'

I know I can get case-insensitive filename completion in the minibuffer using read-file-name-completion-ignore-case, but this doesn't seem to apply to all filename completion in the minibuffer. ...
6
votes
1answer
319 views

How do I disable key-chord-mode in the minibuffer?

key-chord-mode is useful, but I don't need it to work in the minibuffer. How do I disable it in the minibuffer?
20
votes
3answers
3k views

How to display the content of minibuffer in the middle of the emacs frame?

When working on a maximized Emacs frame, having the content of the minibuffer / echo area display at the bottom of the screen can be hard to see, but also causes to lose focus on the text being edited ...
7
votes
3answers
544 views

Why do some commands terminate when leaving the minibuffer (isearch) while others don't (find-file)?

Occasionally I start to open a file, and before I select the file for some reason I execute C-x o before answering the prompt. Then everytime I try and run find-file again it complains about Command ...
10
votes
4answers
1k views

How to change default minibuffer message?

After the init file has done loading I get this message in the minibuffer: For information about GNU Emacs and the GNU system, type C-h C-a. What is it being triggered by and how do I change it?