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.

44 questions
4
votes
1 answer

How to change minibuffer location in Emacs?

I'm tired to move my eye to minibuffer that is bottom of Emacs. So I want to minimize eye movement. Is there any solution for this? I want something like as following. Setting minibuf location on top of current frame.(I don't know It's effective or…
Kei Minagawa
  • 4,395
  • 3
  • 25
  • 43
4
votes
2 answers

Change the background color of the minibuffer when input is needed

Would it be possible to change the background color of the minibuffer when it's expecting user activity? For example when a function needs a parameter or when a function name is incomplete or when you started entering "C-x" and more keys are needed…
Cedric Martin
  • 5,945
  • 4
  • 34
  • 66
3
votes
1 answer

How to make emacs show short (not full) file path in minibuffer on save?

The problem is when file path is pretty long each time I save it, minibuffer height grows and basically immediately shrinks. Kind of annoying because happens so often. So I want to either shorten (basename?) the "wrote: ..." message or make default…
gorlum0
  • 1,425
  • 12
  • 12
3
votes
0 answers

How to keep the minibuffer in Emacs to not be cleared?

I sometimes need to keep the minibuffer in Emacs unchanged to see the displayed information as a reference. For example, when looking for type information of an expression in OCaml, I want at least the type is displayed in the minibuffer (as in the…
Trung Ta
  • 1,582
  • 1
  • 16
  • 25
3
votes
1 answer

How can I use M-x in minibuffer?

Say I want to create a file. Then I was asked to enter the name. I want to use the date as the name of file. I want to use M-x insert date (I define myself) . How can I do that?
yuxuan
  • 417
  • 5
  • 16
3
votes
2 answers

Keep Emacs Evil from switching to normal mode when exiting minibuffer

I'm an evil Emacs user. However, I really only use the normal mode for fancy Vim style edits when I find them more convenient than regular Emacs commands. (Mostly fancy bulk editing/yanking/deleting). However, I'm also a huge user of the minibuffer…
PythonNut
  • 6,182
  • 1
  • 25
  • 41
2
votes
1 answer

Emacs New File Confirmation during Find-File Completion

Some Emacs package I use has turned off the find-file confirmation for choosing a new non-existing file that matches parts of existing file-names shown during completion. I want this confirmation back to the default. What customization option…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
2
votes
2 answers

How to simulate return in emacs minibuffer

What I want to do is, when I find myself using a function that prompts me for a value, and this value is ALWAYS the right one, to be able to bind the function to a key and auto-accept the answer, simulating a RET in the minibuffer. Take for instance…
yPhil
  • 8,049
  • 4
  • 57
  • 83
2
votes
1 answer

How to set SPC to act as Enter in minibuffer mode?

When I edit in minibuffer mode, I must press Enter to exit minibuffer. But I prefer to use Space. "Space" completes word again and again. When the message is "Sole Completion", press Space to exit minibuffer. Defaullt Space key in the second…
textpattern
  • 397
  • 3
  • 14
2
votes
2 answers

How to use a minibuffer-exit-hook with read-string

I have not been able to get the minibuffer-exit-hook to play nice with read-string. As far as I can tell, I should no longer be in the minibuffer after finishing up with read-string. However, the condition (minibufferp) says I'm still in the…
lawlist
  • 13,099
  • 3
  • 49
  • 158
2
votes
3 answers

Simulate minibuffer input in Emacs

I'm looking for a way to simulate minibuffer input. So, some-func takes some input from the minibuffer and does something with it. The problem is that I have to call some-func from some other function calling-func and I need to do it interactively…
rejeep
  • 649
  • 1
  • 6
  • 18
2
votes
2 answers

Disable default value in minibuffer in Emacs

I'm using query-replace-regexp very often and there are very long expressions from time to time. My problem is the following: Query replace regexp (default foo -> bar): Is there a possibility to hide the default expression?
iberion
  • 33
  • 3
2
votes
1 answer

turn off abbrev-mode in Emacs minibuffer?

I use abbrev-mode, smex, and ido-mode. How do I turn off abbrev-mode in the minibuffer for when I smex a command?
incandescentman
  • 6,168
  • 3
  • 46
  • 86
2
votes
1 answer

Browser-Style FTP URL Recognition in Emacs

Has anybody found any way to make Emacs minibuffer input, such as in find-file, correctly detect/recognise and access standard ftp-urls such as ftp://gcc.gnu.org/pub/gcc/infrastructure/ instead of having to, by hand, convert it to to emacs's own…
Nordlöw
  • 11,838
  • 10
  • 52
  • 99
1
vote
1 answer

Insert text string into ido minibuffer using non-interactive defun

Need to insert some text in the ido mini-buffer during ido-find-file using a defun bound to a key chord. This behavior is the same as if the following sequence was typed interactively, C-x C-f, followed by C-e to edit the mini-buffer, followed by…
Mikef
  • 1,572
  • 2
  • 10
  • 21