Questions tagged [minibuffer]

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

The minibuffer is where Emacs commands read complicated arguments, such as file names, buffer names, Emacs command names, or Lisp expressions. It's called the "minibuffer" because it's a special-purpose buffer with a small amount of screen space. It is still an Emacs buffer, a first-class object, but it is a specialized one.

231 questions
23
votes
3 answers

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 when typing a command – which is quite an issue…
9
votes
1 answer

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 main buffer, this shortcut doesn't cancel the…
Name
  • 7,849
  • 4
  • 41
  • 87
8
votes
1 answer

Call a function and insert text in minibuffer prompt

I'd like to define a key binding that calls a function and inserts some default input in the function's minibuffer prompt. For example, I'd like to call the command ivy-switch-buffer and automatically insert yank "!\*" into the minibuffer. (note:…
yafov
  • 314
  • 1
  • 9
4
votes
1 answer

How catch the minibuffer message when saving, and colorize it? (Only for savings)

You could colorize the message in the minibuffer with (message (propertize "foo bar" 'face '(:foreground "green" :weight bold))) I would apply this only to the confirmation message of writings. The green color will help me to clearly distinct…
ReneFroger
  • 3,850
  • 23
  • 66
2
votes
1 answer

How to check whether input focus is in the minibuffer?

In order to adjust the behavior of my custom keyboard shortcuts I'd like to determine whether or not the current input focus is within the minibuffer. (The buffer seems to be called something like *Minibuf-1*.)
dmw64
  • 177
  • 6
2
votes
2 answers

How to define "-" as a word character in minibuffer?

I have a specific problem that when I run "grep", my default grep command contains the -i option, and sometimes I wish to repeat the last search but case-sensitive. So I press M-p (previous command), grep -i lastSearchWord then a…
Alexander
  • 121
  • 1
2
votes
1 answer

Mirroring minibuffer contents at point

I have a huge screen, looking down at the minibuffer and then back and forth between my code and the minibuffer (e.g. if I'm isearching) is somewhat annoying. As such I'm wondering if there is a way to mirror minibuffer contents at point. I realize…
Manux
  • 131
  • 2
2
votes
1 answer

How configure the confirmation minibuffer to use Enter, instead y?

When you want to do something, you get sometimes a confirmation prompt in the minibuffer, with pressing yes or no to proceed. I'm aware that you could change this with typing y instead yes with the following setting. (fset 'yes-or-no-p 'y-or-n-p) …
ReneFroger
  • 3,850
  • 23
  • 66
1
vote
1 answer

Run function at the end and begin of any minibuffer interaction

I tried to advice read-from-minibuffer and read-string but nothing worked. For example, when I called yes-or-no-p, no advice handlers were called. Is there general way how to detect that user is interacting with minibuffer? I need it because I have…
dev1223
  • 241
  • 1
  • 10
1
vote
1 answer

What is the variable for having multiple minibuffers?

I remember a while back that I could open a minibuffer within a minibuffer. But now I can't seem remember what the variable was or if it was package specific. I'm using Ivy, Swiper, and Counsel. Does anyone know?
John DeBord
  • 570
  • 3
  • 14
1
vote
0 answers

Advance minibuffer-line to show things on the right site, even if mini-buffer is in use

I know there is minibuffer-line to display things in the minibuffer if it is not in use. I would like those things to be displayed from the right in the minibuffer, even if it is in use, how would i do that? Could i possibly split the minibuffer?
LinFelix
  • 259
  • 2
  • 9
1
vote
1 answer

How to display minibuffer only when using m-x?

I use helm to do the common stuff and I have my "helm minibuffer" on top of the helm buffers. Therefore I don't really need the regular minibuffer anymore, except when I have to pass arguments to commands. So I'm looking for a way to dynamically…
bertfred
  • 1,729
  • 1
  • 12
  • 24
1
vote
1 answer

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 happens far too quickly to take a screenshot. …
Peter Becich
  • 329
  • 1
  • 12
0
votes
2 answers

read-string for making new buffer

Am trying to use read-string to read a string from the user. With that name I want to create a new buffer. Have seen that read-string is sometimes called from within an interactive expression, but at other times, read-string is called outside on…
Dilna
  • 1
  • 3
  • 11
0
votes
1 answer

How to keep minibuffer height compact as possible?

I am using GNU Emacs 26.3 under iTerm2. My goal is to keep minibuffer size as compact/minimum as possible. Default height view: Sometimes minibuffer's height increases and remains as it is. The empty space is small but I cat detected it, since I…
alper
  • 1,370
  • 1
  • 13
  • 35
1
2