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.

219 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…
18
votes
1 answer

Spacemacs: paste into minibuffer

Is there a way to paste something into the minibuffer? For example if I want to eval-expression and paste something in there neiter C-v or (obviously p) will work? There has to be a way.
sebastian
  • 417
  • 3
  • 9
15
votes
3 answers

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 typing the command into the minibuffer. I'm looking…
bignose
  • 627
  • 3
  • 15
13
votes
4 answers

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?
caisah
  • 4,056
  • 1
  • 23
  • 43
13
votes
1 answer

Using evil in the minibuffer

evil-mode does not seem to bind keys in the minibuffer. Is there a way to use evil in the minibuffer? It's hard to use Vim-style keybindings everywhere BUT the minibuffer.
Panch93
  • 265
  • 2
  • 8
12
votes
4 answers

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 interactive?
Sean Allred
  • 6,861
  • 16
  • 85
12
votes
2 answers

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 ... | }* | * when cursor is here display "namespace a"…
log0
  • 320
  • 2
  • 8
11
votes
2 answers

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 also. But minibuffer contents won't be there…
Chillar Anand
  • 4,042
  • 1
  • 23
  • 52
11
votes
0 answers

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)) (save-excursion (insert…
abo-abo
  • 13,943
  • 1
  • 29
  • 43
10
votes
2 answers

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 to also transiently increase the text size of the…
Colin Fraizer
  • 740
  • 4
  • 12
10
votes
3 answers

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 commands without having the minibuffer-prompt…
lawlist
  • 18,826
  • 5
  • 37
  • 118
10
votes
3 answers

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 (:background "green"))))) (set-face-background…
Lenar Hoyt
  • 1,163
  • 7
  • 25
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,689
  • 4
  • 38
  • 84
9
votes
1 answer

How do I change the color of the prompt in the mini-buffer?

I am using the zenburn theme and my mini-buffer prompt is unreadable (image attached). Please help me. I am just learning emacs.
Angad Singh
  • 91
  • 1
  • 2
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
1
2 3
14 15