Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I open multiple minibuffers in emacs?

Tags:

emacs

Say I'm entering a command in the minibuffer, and I realize that I need to remember the path to some file as a param to my command. Can I instead of cancelling the command I started entering to do C-x d or to go to a shell, click (click? what's that?) on a secondary mini buffer to run such command?

like image 987
Diego Saa Avatar asked Jun 07 '13 14:06

Diego Saa


People also ask

How do I open a new window in Emacs?

To open a new frame, select Make New Frame from the Files menu or press C-x 5 2 (for make-frame). Emacs makes a new frame containing the current buffer and puts it on top of the current frame.

How do I access Minibuffer Emacs?

The simplest way to enter a minibuffer argument is to type the text you want, terminated by RET which exits the minibuffer. You can cancel the command that wants the argument, and get out of the minibuffer, by typing C-g .

What is the Minibuffer in Emacs?

The minibuffer is where Emacs commands read complicated arguments, such as file names, buffer names, Emacs command names, or Lisp expressions. We call it the “minibuffer” because it's a special-purpose buffer with a small amount of screen space.


1 Answers

You are looking for "recursive editing", specifically the bit discussed in the Recursive Minibuffer docs:

(setq enable-recursive-minibuffers t)
(minibuffer-depth-indicate-mode 1)

The latter line makes things the recursive editing less confusing, by showing the level of recursion. E.g C-x C-f then C-x b will appear like this:

minibuffer-depth-indicate-mode example

like image 151
dbr Avatar answered Oct 02 '22 04:10

dbr