Questions tagged [minibuffer]

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

Filter by
Sorted by
Tagged with
1
vote
0answers
41 views

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 ...
5
votes
1answer
1k views

gpg password entry in minibuffer, not popup

On a new install Debian Stretch GNU Emacs 24.5.1 gpg (GnuPG) 2.1.18 libgcrypt 1.7.6-beta pinentry-gnome3 (pinentry) 1.0.0 ls - /usr/bin/pinent* /usr/bin/pinentry -> /etc/alternatives/pinentry /...
2
votes
1answer
874 views

Tab completion in minibuffer: case insensitive

When the minibuffer offers tab completion, how can I make that case-insensitive? Preferably a global setting that makes any completion – a filename, a command, ido, etc. – obey that setting.
1
vote
1answer
74 views

How to make exceptions to bind-key* overriding behavior?

I like binding M-n to make-frame, so I have the following in my init file: (bind-key* "M-n" 'make-frame) The * form of bind-key allows me to override other minor-mode M-n bindings. But when I'm ...
1
vote
1answer
146 views

Can I write Information into the mini-buffer (like an extra mode line)

I was wondering if it is possible (with any reasonable amount of work) to write infos into the mini buffer (because not every window needs to tell me the time for example).
4
votes
2answers
693 views

Can't get out of minibuffer completion

Since upgrading from v. 24 to v. 25 [OSX 10.11.6] I find myself frequently fighting with minibuffer completion, as typing a tab after doing switch-to-buffer. ^G just beeps, and the completions ...
3
votes
1answer
2k views

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.
3
votes
2answers
175 views

keybinding to yank word/char under cursor into minibuffer?

Does Emacs have a keybinding to yank the word/character under point into the minibuffer? I know isearch has "C-w" (isearch-yank-word-or-char) and "C-M-y" (isearch-yank-char). I often wish I could use ...
2
votes
0answers
80 views

Prevent text jumping up the screen when dismissing Swiper

Swiper creates a minibuffer many lines in height. This height is borrowed equally from my existing, vertically-arranged, windows. When Swiper is dismissed, this space is recovered by the windows and ...
0
votes
1answer
93 views

Is there a helm read-from-minibuffer functionality?

I have an interactive command which uses read-from-minibuffer with a history variable. What I now would like to have is a helm function that provides a simmilar operation: enlisting history ...
3
votes
1answer
382 views

Error running timer “show-paren-function” when displaying matching line in message/mini buffer

I want to display the line contains matching bracket in the message/mini buffer at the bottom of emacs. I found some code on emacs Wiki, after put it in init file, emacs do show the maching line in ...
0
votes
0answers
42 views

Error when typing C-0 C-k in minibuffer

It is from yesterday that emacs behaves in an unexpected way, as I will now explain. If I open emacs and I open the minibuffer with C-x C-f and the I press M-0 C-k, emacs deletes the line, this is the ...
4
votes
1answer
193 views

Center text in minibuffer/echo area?

Q: is there a way to center the minibuffer/echo area horizontally? I use Emacs in a single, very wide frame split into three windows side by side. I'm usually working in the center window, with the ...
2
votes
1answer
71 views

How can I bind a key to M-x C-r (isearch extended command)?

I am a fiend for C-r (isearch-backward), and I often will enter the minibuffer with M-x (execute-extended-command), then use C-r to search for a previous command. I'd like to bind a key that drops me ...
1
vote
1answer
33 views

how to define a key binding that includes input to the minibuffer?

I am frequently running multiple Emacs servers. When I am in a particular client I sometimes want to check which Emacs server I am connected to. So I do: `C-h v` … and the enter in the mini-...
12
votes
1answer
4k views

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.
1
vote
0answers
40 views

Accept and submit minibuffer isearch result with a single keypress

I like how Bash handles i-search: C-r, type some characters, C-r a couple more times to find the desired command, then hit Return and the command is executed. If I want to edit the command before it'...
1
vote
1answer
123 views

How to open new buffer instead of current via elisp?

I want to bind key when in ido-switch-buffer to open ibuffer instead, but I do not understand how to make that with elisp. Here's my config: (defun my-open-ibuffer () "Open ibuffer from ido-switch-...
1
vote
1answer
320 views

How to use input methods in minibuffer?

I am writing some xelatex code with both English and Farsi (right to left direction) characters in it. Also I am using Emacs' input method (changing with key Ctrl + \) for changing between English and ...
1
vote
0answers
45 views

Quitting minibufer works no more in 24.5.1?

In GNU Emacs 24.5.1, which comes with Ubuntu 16.04 Xenial Xerus the C-g does not abort the command like it used to do in earlier versions, which is annoying as it breaks the habit. There is C-] ...
5
votes
0answers
106 views

How to stop background processes interrupting minibuffer

I have a couple of background processes that I regularly run, such as mu4e and jabber-mode. These, and other, processes provide updates to the minibuffer. Unfortunately, they do so when I'm already ...
1
vote
1answer
484 views

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 ...
0
votes
0answers
23 views

Emacsclients locks up on mini-buffer use [duplicate]

If you start emacs --daemon -q and then connect two emacsclients to it. If you press C-x C-f or anything that activates the minibuffer - no input to the other emacsclients will be accepted until that ...
1
vote
1answer
150 views

query-replace-read-to: Command attempted to use minibuffer while in minibuffer

I want to rename file in dired by replacing underscores with spaces. I hit R Down (dired-do-rename) and after typing M-% (query-replace) I got: query-replace-read-to: Command attempted to use ...
5
votes
2answers
266 views

Exit minibuffer and execute a command afterwards?

I am trying to bind a key in minibuffer-local-map to a command which uses abort-recursive-edit or exit-minibuffer and then proceeds executing more elisp code. So I want to exit the minibuffer and then ...
3
votes
1answer
601 views

how to use minibuffer instead of pop-up window for GPG files?

I am looking for Emacs password manager, and org-password-manager looks nice for my needs. But when I am trying to open created passwords.org.gpg file (I use symmetric encryption for more ease), ...
1
vote
1answer
302 views

Is there an Emacs equivalent for vim-bufferline?

When I was using Vim in the past, I was charmed of the vim-bufferline. Only when there were not any message displayed or any command invoked, it showed the opened buffers in the minibuffer. It looked ...
2
votes
1answer
90 views

Make spaces show as spaces in minibuffer instead of completion

The default mapping of SPC in minibuffer is (self-insert-command N). However, I prefer SPC to simply type a single space (for instance, in passing arguments to environments and commands within AuCTeX)....
4
votes
1answer
73 views

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. ...
5
votes
1answer
129 views

Define colors for single use in minibuffer

I couldn't find anything on this, so I'm asking it here. I can display a message in minibuffer with (message "foo bar") I would like to give only the message "foo bar" a red color in the minibuffer....
4
votes
2answers
133 views

Interactive auto-suggest?

My current configuration of Emacs (24.5.1 on U15.10) has auto-suggest set up for find-file, that is, when I do C-x C-f, the mini-buffer fills with possible completions that I can tab to and hit enter ...
0
votes
0answers
43 views

Pre fill minibuffer upon calling to helm-projectile function

Based on this answer, and its with-initial-minibuffer function, I am trying to call helm-projectile-grep, customizing minibuffer pre-filling. I try to avoid the default behaviour, which is to pre-...
0
votes
0answers
45 views

Minibuffer prompt not displaying (intermittently) in daemon mode

I am using Emacs 24.5 on Mac OS (installed with homebrew) in daemon mode. I normally leave the daemon running for long periods of time (weeks) while I'm working. I'll open up files from the command ...
5
votes
1answer
598 views

Key binding with an argument

Say I have a shell command foo that I want to bind to a key. I could do for example: (global-set-key (kbd "C-c f") (lambda () (interactive) (shell-command "foo"))) I would like to be able to pass an ...
2
votes
1answer
252 views

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 ...
1
vote
1answer
70 views

Quick access to the previous search terms after calling isearch-forward without switching to the minibuffer

I frequently re-search the terms previously searched by isearch-forward in my current session. Assume that I have searched term1, term2, ... during my previous I-searches. When I do a new isearch-...
5
votes
1answer
174 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
128 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
889 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 ...
6
votes
2answers
2k 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
653 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 ...
4
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
336 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
103 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
1k 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
64 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
190 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
356 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
185 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. ...