Questions tagged [minibuffer]
The minibuffer is a part of Emacs used to read in complex commands or arguments.
222
questions
0
votes
0
answers
40
views
Minibuffer and ido keybindings with ergoemacs-mode
I'm struggling to get the same hotkeys in the latest ergoemacs-mode (as they were in ergoemacs 5.3.7):
In the M-x (execute-extended-command) command prompt I want M-i to act as previous-line-or-...
0
votes
0
answers
50
views
Rebinding navigation keys when using isearch
I've rebound most of my navigation keys using bind-keys* and am trying to create a uniform layout. But I have the problem that when I trigger isearch, point is not actually placed in the minibuffer ...
0
votes
1
answer
15
views
shuffling between a set of open source files
What would be the easiest way of shuffling between a few source files, usually of the same type, say .py or .js. C-x C-b and selecting gets a little tedious once your open buffers list grows. I ...
0
votes
0
answers
16
views
Preventing already-selected items from appearing in subsequent completing-read-multiple completions
The problem is probably more evident when using Vertico, but I suspect the behavior is present in completing-read-multiple itself.
If I've got the following form:
(completing-read-multiple
"...
0
votes
1
answer
34
views
How can I read a number as user input?
I would like a user to input a number using the minibuffer. What function should I call and how should it be used?
2
votes
0
answers
58
views
Disable fill-column-indicator Only in Minibuffer
My code
(custom-set-variables
'(global-display-fill-column-indicator-mode t)
'(minibuffer-mode-hook `(,@minibuffer-mode-hook
,(lambda ()
(...
1
vote
1
answer
54
views
How to remove colored background of minibuffer prompt?
I modified my init.el-file. I added cursor-modifications and airline-themes.
When I want to find a file however, this ugly yellow box occurs. I looked around in my init.el, but I did not find anything ...
0
votes
0
answers
36
views
Code completion candidates displayed in minibuffer
How can I get the completion candidates to be displayed in the minibuffer (see e.g. here https://tuhdo.github.io/static/c-ide/semantic-boost-demo.gif) instead of being displayed at the cursor? The ...
1
vote
3
answers
114
views
Increase font size in mini-buffer (for Japanese Kanji selection)
I'm using Emacs and Xubuntu, and my default input is English, but (in Emacs) I use Japanese input method as well. To enter Kanji (Chinese characters), I type some letters (usually from 2 to about half ...
0
votes
1
answer
62
views
With Ivy/Counsel, why are some foreground colors in `M-x` a different color than others?
Please see the picture below. Why are some things colored orange? I can't figure out what Face is causing that. This is using Ivy/Counsel.
2
votes
1
answer
54
views
using "Shift+Space" in org-mode capture minibuffer
Using Emacs 28.2 (graphical, not text mode) from https://emacsformacosx.com with org-mode 9.5.5 and ivy.
When entering a task description in the mini-buffer via org-capture, I occasionally enter both ...
2
votes
1
answer
153
views
Eglot spams the minibuffer in Java mode
I am essentially having this issue but for the java-mode. Eglot shows too many messages in the java files.
How can I fix this? I only wanna see the documentation and error messages in the minibuffer.
1
vote
2
answers
40
views
can't use `isearch-yank-word-or-char` in minibuffer-local-map?
I'd like to have occur's prompt in the minibuffer do the same that isearch does: C-w inserts the word at point in the main buffer into the minibuffer prompt. That keybinding, when doing isearch, calls ...
2
votes
1
answer
85
views
most commands are refused when prompted for querying whether to use a novice-confusing command
When a new user types M-x narrow-to-region, Emacs will prompt for a query:
Please type y, n, ! or SPC (the space bar): _
where the _ stands for a cursor.
Thus, Emacs only accepts these 4 character ...
2
votes
1
answer
98
views
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 *...
0
votes
1
answer
57
views
Magit `zz` (stash both) does not allow whitespace in minibuffer
Sometimes when using command zz (stash both), the minibuffer to enter a stash message does not allow me to enter whitespace (e.g. space chars). I typically resolve to use dashes or underscores or even ...
1
vote
1
answer
55
views
Presenting Python function arguments in minibuffer for selection
I have written a Python function that takes a string input and performs a semantic search in my org-roam-directory and outputs the results in the following format after 2 seconds of computation:
[{'...
0
votes
1
answer
45
views
Why is `paredit-kill` (`C-k`) not working in the minibuffer?
This is my config file. I frequently use C-k which is bounded to paredit-kill.
In general, it works. However, it does not work when I am typing in the minibuffer. For instance, after executing C-x C-f ...
0
votes
1
answer
30
views
How to avoid echo area conflict between gnus and emacs-pinentry?
I use GNU Pass for my password manager, emacs-pinentry for my GPG pinentry, and Gnus as my mail reader. This has created a problem for me when Gnus and emacs-pinentry both need to use the echo area/...
0
votes
1
answer
39
views
Is it possible to use counsel-yank-pop (or something similar) to get the job done of pasting from the clipboard-ring in the mini-buffer?
This is my emacs init file. As you see, I use command counsel-yank-pop. And I even did a keybinding for it with:
;; =counsel-yank-pop= enhances built-in =yank-pop=.
(global-set-key (kbd "M-y"...
1
vote
2
answers
137
views
Make the minibuffer prompt always have a default argument
Is it possible to make the first history item available as the default argument when running commands like eval-expression and goto-line?
I'd like to be able to just press enter to use the previous ...
0
votes
0
answers
133
views
Eglot send diagnostic information from eldoc mini buffer to be displayed by corfu or corfu-doc?
Hi I am using Emacs29 with native support for Eglot, together with corfu, corfu-doc and orderless packages.
I was wondering if it is possible to send the documentation under point information, which I ...
0
votes
1
answer
160
views
Minibuffer completion
I am getting confused about minibuffer completion. I can see icomplete and ivy.
For icomplete, there are two main displays, horizontal display (default icomplete) and vertical display (icomplete-...
1
vote
1
answer
58
views
From the minibuffer, how can I get the file pointed to in dired?
I'd like to write elisp function with the following functionality:
It can be invoked from the minibuffer, and it will then relate to the latest selected window buffer.
If the selected buffer is in ...
1
vote
1
answer
102
views
Change minibuffer color when NOT in minibuffer AND minibuffer active
I frequently click on another application when I'm doing something in the minibuffer, and then I've forgotten I was in the minibuffer when I come back to emacs. I would like to highlight the ...
0
votes
1
answer
477
views
How to get a minibufer on top of the screen with the visual auto-complete
On the screenshots of Doom Emacs themes (https://github.com/doomemacs/themes/tree/screenshots) I see the minibufer on the top of the screen with the visual autocomplete:
How to achieve this look and ...
0
votes
1
answer
89
views
How do I call helm in the middle of switch-to-buffer (using vertico)?
Say I'm in the middle of switch-to-buffer (using vertico.el btw), I couldn't find the buffer/file I need. I want to use a key binding to call helm-recentf or helm-locate etc, how should I go about ...
1
vote
1
answer
52
views
Create a function to run a search with mini-buffer partially completed
I would like to write a function that starts a search (evil-search-forward specifically), with some arbitrary text already in the minibuffer.
Following directions in this link I came up with the ...
0
votes
2
answers
35
views
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 ...
1
vote
1
answer
53
views
How to preselect initial text in the minibuffer with Elisp?
I'm using read-string to read a string from the minibuffer, with an initial input. How can I highlight the initial input, so that I can start replacing it with one key stroke? IOW, given (read-string &...
0
votes
1
answer
55
views
Stopping the message ‘[Saved text until: …]’
The problem I have is caused by Emacs.lineSpacing: 1 in my X resources (thanks to NickD for help in pinpointing this), which equates to:
(setq-default line-spacing 1)
With that in effect, I call find-...
1
vote
1
answer
101
views
Is there a reliable way to determine in the minibuffer from which buffer the interactive command was invoked?
Simply checking the buffer-list is not enough, because an interactive command can be invoked via various ways, not just directly or via M-x. E.g. if you invoke it via a Helm-like selector package ...
2
votes
2
answers
66
views
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 ...
0
votes
1
answer
110
views
How can I compile current LaTeX buffer without showing `Master file:` line in the minibuffer
Following solution is used to compile current buffer that is a LaTeX file:
(defun my-run-latex ()
"Save all buffers and run LaTeX on the current master."
(interactive)
(let* ((inhibit-...
0
votes
1
answer
66
views
Reading a word or regular expression from the mini-buffer to a function
What function should I call to read a word or regular expression from the minibuffer? Am writing a function that accepts a word or regular expression and counts the number of matches.
But need to ...
1
vote
1
answer
148
views
Cannot invoke transient magit-pull while minibuffer is active
I'm using magit. When I try to pull or commit, I get this message in the mini-buffer:
Cannot invoke transient magit-pull while minibuffer is active
I can assure you, I have closed every magit-related ...
1
vote
1
answer
266
views
Non-blocking prompt for user input
I'm using the org-pomodoro, and I have added a function to the org-pomodoro-started-hook that prompts the user for a reminder for what they should do during the break. However, I don't want to call ...
0
votes
0
answers
94
views
Helm get current user input
I am trying to write a custom source for Helm. This source, however, should also give me the opportunity to create new objects, and not just select between those existing.
The problem is, when what ...
0
votes
1
answer
373
views
how to make mini buffer "sticky"?
So I wanted to make mini buffer "sticky."
Currently, I am using doom emacs. When I look up info page using spc h i for example, mini buffer popups from below. The problem with this mini ...
5
votes
1
answer
420
views
How to exit minibuffer with one key?
How can I tell emacs that one key press of <f12> should terminate the minibuffer, like C-g does by default?
I tried in scratch buffer:
(global-set-key (kbd "<f12>") 'keyboard-...
0
votes
1
answer
60
views
How can I insert a character by its hex code in the minibuffer?
I've seen it's possible to insert characters with their hex codes by using ctrl+x 8 RET but on regular buffers. I'd like to insert in the minibuffer itself.
0
votes
0
answers
50
views
It now takes multiple C-g presses to cancel actions in minibuffer window
I'm a long time Emacs user. For years it took a single C-g to cancel the operation in progress in the minibuffer. For example:
C-x b to invoke switch to buffer
C-g to cancel
C-x C-f to visit file
In ...
2
votes
1
answer
37
views
widget: Setting to control "y/n" confirmation with system popup versus minibuffer
On OSX, using the following variable/keymap and code snippet, a mouse click on the "SUBMIT" button will generate a system popup confirmation message, whereas an enter key on the "SUBMIT&...
0
votes
1
answer
53
views
How can I apply `(toggle-debug-on-quit)` ignore ` Debugger entered Lisp error: (minibuffer-quit)`
I have (toggle-debug-on-quit) in my init.el file due to find a issue that makes emacs hangs. But it also catches minibuffer-quit.
Would it be possible to ignore catched errors for Debugger entered--...
0
votes
1
answer
51
views
How to define a command to switch to the current candidate buffer in Ido?
I'm trying to write a command that I would call while using ido-switch-buffer or ido-kill-buffer to open the current candidate in another window. Ideally it would be able to open virtual buffers as ...
0
votes
2
answers
445
views
How to map keybindings to find-file?
How I can map keybindings to find-file since there is no
find-file-mode-map or something like that?
I am using the vertico minimalistic vertical completion UI.
0
votes
1
answer
169
views
How to delete inserted directory names for `find-file` input?
I've been trying to figure out how to erase directories faster when I use find-file
in vanilla Emacs.
An example is Doom Emacs, you press backspace once, and erase the entire directory, but when I try ...
1
vote
1
answer
101
views
How do you target the present directory, once in a while, with do-what-I-mean enabled?
After setting Dired do-what-I-mean
(setq dired-dwim-target t)
which, quoting the man pages
If non-nil, Dired tries to guess a default target directory. This
means: if there is a Dired buffer ...
3
votes
1
answer
57
views
How can I do something only if the minibuffer exits normally?
Simply attaching to minibuffer-exit-hook is not enough, because it also runs when the user presses C-g, so the command quits.
Is there a way to determine in the hook if the command is exiting normally?...
3
votes
2
answers
123
views
Batch mode, read NUL-delimited list of file names from stdin
I am writing a batch Emacs script and I would like it to read a NUL-delimited list of file names to process from stdin. (NUL-delimited lists of file names are what you get from the Unix command find ....