Questions tagged [minibuffer]

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

Filter by
Sorted by
Tagged with
5
votes
1answer
187 views

I-search prompt font

I want my minibuffer prompt to be in bigger font, so I've added this to my .emacs: (defun my-minibuffer-setup () (set (make-local-variable 'face-remapping-alist) '((default :height 1.5)))) (...
1
vote
2answers
162 views

Why is my minibuffer scrolling and preventing me from seeing emacs asking me questions?

My new emacs is scrolling minibuffer text so that I can't see simple stuff, like when emacs asks if I want to save changes to a file before exiting. Doing this both in a mac window or in Terminal. ...
12
votes
3answers
1k views

Put the current file name in the minibuffer

How can I insert the file name of the active file buffer into a command? When I invoke a command that needs a file name, I am often doing so from a file buffer and want the name of that file while ...
7
votes
2answers
3k views

How to copy minibuffer contents?

To post this question and this question, I had to copy the contents of minibuffer. I tried to copy from minibuffer but it didn't worked. I came across this discussion and checked *Messages* buffer ...
3
votes
1answer
691 views

Show Helm candidates at left, immediately above minibuffer

If I split a frame vertically, keep point in left split and press M-x, minibuffer will be on bottom and M-x will be in left corner like this. This is very convinient as I can 'see' what I am typing ...
5
votes
2answers
2k views

Difference between the physical “RET” key and the command 'newline in the minibuffer

The key "RET" is bound to 'newline in many modes in Emacs as described in M-x describe-binding. But in the minubuffer, they are different (try to send the command newline to the minibuffer). So this ...
3
votes
2answers
383 views

Add bottom margin to minibuffer / echo area?

When running emacs maximized on my new screen, a black shadow at the bottom, that for normal viewing angles is just a few pixels wide, interfers with the readability of the minibuffer / echo area. ...
2
votes
1answer
121 views

How to use the inserting commands/functions in the mini-buffer?

Assume that I have defined a function like below with some keybinding (e.g.M-p). (defun foo () (interactive) (insert "something very long") ) (global-set-key [(meta p)] 'foo) If I hit M-p while the ...
6
votes
5answers
2k views

Suppress message in minibuffer when a buffer is saved?

Whenever a buffer is saved, a message is displayed in minibuffer. Wrote foo.bar I use real-auto-save to save modified buffers every 5 seconds. Due to this minibuffer is getting spammed. Sometimes, ...
1
vote
2answers
71 views

Is it possible to wait for user in a loop?

I'm trying to write a function for complete in minibuffer with history. (Terminal equivalent of "\e[5~": history-search-backward in ~/.inputrc) With the below function I can get the last command ...
2
votes
1answer
213 views

Setting faces is slow?

I'm seeing rather bizarre behavior. I have the following code: (defun set-mode-line-face () (let ((color (pcase (random 6) (`1 '("#586e75" . "#eee8d5")) (`2 '("#...
2
votes
2answers
410 views

AucTeX: Disable electric-pair-mode in minibuffer during Macro definition?

I use Emacs 24.3.1 and AUCTeX. I switched on the electric-pair-mode in LaTeX-buffers. The only time I would really like to disable it in the minibuffer while inserting math-mode parentheses via the \...
6
votes
2answers
1k views

fuzzy completion-style

People more knowlegable than I have suggested that intelligent fuzzy matching and sorting for both minibuffer completion and in-buffer completion could be accomplished by implementing a completion-...
3
votes
3answers
212 views

How to call another function, if one function gives an error message

Suppose I call a function which is named as foo. Sometimes that function foo will give a message such as "Example of error message". If that is the case, then something else should be executed. ...
1
vote
1answer
165 views

minibuffer resizes while typing into minibuffer

There is an annoying quirk of my minibuffer. Can you help me trace its origin? Typing into the minibuffer causes it to instantaneously resize to 2 or 3 lines in height, and then back to 1 line. It ...
3
votes
1answer
179 views

Making read-char input robust? [closed]

I need to read a char at a time to interactively build a filter string while I show the results in a regular buffer. And what I've written works, except when a cursor key is pressed - then bang, I ...
9
votes
0answers
639 views

How to immediately resize the minibuffer window?

Suppose that I have this function, that inserts some stuff into the minibuffer: (defun foobar () (interactive) (minibuffer-with-setup-hook (lambda () (let ((resize-mini-windows t)) ...
1
vote
1answer
192 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
130 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
307 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
112 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
49 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
237 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
218 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 ...
10
votes
2answers
1k 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 ...
9
votes
1answer
1k 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
160 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
111 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
357 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
147 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
399 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?
6
votes
1answer
235 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.
12
votes
4answers
651 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
455 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 ...
12
votes
2answers
1k 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
984 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
683 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
334 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?
21
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 ...
6
votes
3answers
610 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
2k 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?

1 2
3