Questions tagged [minibuffer]

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

Filter by
Sorted by
Tagged with
0
votes
0answers
15 views

Minibuffer not showing the bottom line

When I use multiple monitors, the bottom line of the minibuffer doesn't render; ie there's a line at the bottom of the list that I can select but doesn't render on screen. I'm pretty stumped on how to ...
1
vote
1answer
18 views

How can I use `TAB` with `M-x` to cycle through commands matching minibuffer input

I am finding completion in Emacs system to work similarly to bash completion, in the sense that upon pressing TAB, it presents the user with a list of possible options. However, I am looking for ...
0
votes
1answer
54 views

How to change color of searched text in the minibuffer when M-x activated?

When I type M-x along with some text, the found text's background and font color is hard to read (gray and bold white on top of dark blue). Is it possible to change it? Example screenshot: As theme I ...
1
vote
1answer
14 views

Is there an easy way to use thing-at-point to initialize interactive read string (interactive “sfoo:”)

Is there an easy way to use thing-at-point to initialize the contents of an interactive string reading? I have a function the looks something like this: (defun foo (string) (interactive "...
1
vote
1answer
37 views

How can I suppress the message `When done with this frame, type C-x 5 0`?

I am running emacs v26 daemon on the background and using a single terminal. Usually I open files using emacsclient -qt and close them using C-x C-s and C-x C-c to get back to terminal run the script ...
1
vote
1answer
66 views

why do I need to use ctrl-G twice to quit a minibuffer prompt?

Sometime recently emacs started making me hit C-g twice to quit a minibuffer prompt and I can't figure out how or why it's doing this. What happens is I start a minibuffer command -- say, C-x C-f -- ...
0
votes
1answer
24 views

How to hierarchically find available functions in the minibuffer with stock emacs

I accidentally pressed some keys and found a feature that looked really useful. It gave me the option to hierarchically select a command/function to run in the minibuffer. There was some explanatory ...
1
vote
2answers
63 views

How do I pass a variable definition as a parameter to a command in the minibuffer?

I am an emacs novice. I am familiarizing myself with making basic changes to the init.el file. Currently, when I want to load init.el, I first C-h v user-init-file RET, this opens a *Help* screen ...
1
vote
1answer
12 views

Deleting a minibuffer only frame on C-g

What I'm trying to achieve I'm trying to create a popup that runs an elisp funtion I've written which searches my library directory for pdfs, gets the user to choose an option (using completing read) ...
0
votes
1answer
47 views

How to keep minibuffer height compact as possible?

I am using GNU Emacs 26.3 under iTerm2. My goal is to keep minibuffer size as compact/minimum as possible. Default height view: Sometimes minibuffer's height increases and remains as it is. The empty ...
0
votes
1answer
28 views

embark-collect-* showing wrong number of arguements from Selectrum

I've been trying to get Selectrum, Embark and other packages working together as a completion framework, but am running into a problem with embark-collect-snapshot (and embark-collect-live). In the ...
2
votes
1answer
42 views

Why doesn't font lock work in the minibuffer?

If you invoke M-x eval-expression then you can evaluate elisp expressions there, but there is no syntax highlight. If I turn on emacs-lisp-mode in the eval-expression prompt then the major mode is ...
1
vote
1answer
99 views

Save current file with a slightly different name in Helm

This is the same question as Save current file with a slightly different name, but for Helm. (The top answer given for the original question doesn't work in Helm, sadly: M-n (next-history-element) ...
0
votes
0answers
27 views

Echo area in Evil mode

I was wondering if it is possible to convert the echo area into something like what you get when you press C-f after : (in ex-mode)? One of the packages I am using gives me a modifiable (long) string ...
0
votes
0answers
25 views

What is the hook for Slime Eval minibuffer?

I have installed Slime and Paredit (M-x package-install paredit) and I have configured it in my ~/.emacs too like this: (setq inferior-lisp-program "/usr/local/bin/sbcl") (add-hook 'eval-...
0
votes
1answer
38 views

What are the yellow-background items in Ivy?

I'm currently migrating from Helm to ivy+counsel, and I have a problem with the faces ivy applies in the minibuffer for some commands. See this example: Some of the possible selections are ...
0
votes
0answers
11 views

Use edebug to trace ivy-read OR how to prevent focusing in minibuffer

I would like to understand more of the internals of ivy-read. So I tried using edebug to trace some of the helper functions in ivy.el. However, upon entering edebug, the focus always is in the ...
0
votes
1answer
22 views

Show line at opening brace when cursor is after the closing brace (Perl)

Something I like in Emacs is positioning the cursor after the closing brace/paren highlights the opening brace/paren. Even better, like in Emacs-Lisp mode, the opening ( line is displayed in the ...
0
votes
0answers
19 views

Make ido-completing-map override minibuffer-inactive-mode-map

I'm trying to bind a key in ido-completing-map, and I want it to override the key-binding with the same key from minibuffer-inactive-mode-map. But the latter seems to take precedence. How can I remedy ...
2
votes
2answers
192 views

Inserting timestamp in mini buffer in Emacs

I keep on saving various org files in their respective folders using Filename as YYYY-MM-DD.org files . So I ended up typing C-x C-w 2020-10-06.org at least thirty times today. Can this process be ...
1
vote
0answers
27 views

How to define interactive function that will not auto-complete?

If I do this: (defun foo-bar-baz () (interactive) (message "foo-bar-baz")) And then M-x foo-baz RET (note no "bar") then completion matches foo-bar-baz and it executes. Is ...
0
votes
0answers
35 views

If an emacsclient has an open minibuffer when it's closed, it freezes everything

I use emacs --daemon for everything, which means I frequently have several different instances of emacsclient running at a time. I've noticed that if I execute an action which opens a minibuffer, it ...
0
votes
0answers
23 views

M-. takes over my commands and can't execute OR C-g to escape

I am using Emacs 26.3 and trying out ggtags-company-mode to navigate my code base. I move my cursor to a function I want to jump to the definition of, poll_count, and enter M-. I now have this at ...
0
votes
0answers
72 views

How to suppress LSP message from flickering the minibuffer height?

I am facing an annoying problem which makes working very unpleasant: I am using Go LSP (backed by gopls) on Emacs 26.3 (9.0) on Mac. While working on Go code often a message of the form LSP :: ...
0
votes
0answers
29 views

^M appearing in minibuffer

when I invoke some function that requires to select an option from the minibuffer, there is often a first option tagged with [^M] what does it mean? How to select it?
0
votes
1answer
39 views

Report time at whole hours by prompting mini-buffer

Reference to 31.10.6 Appointments of Emacs Manual It provides a handy solution to report hour and remind appointments: For example, suppose the diary file contains these lines: =M-x appt-add= ...
0
votes
0answers
26 views

Display minibuffer on all frames

The minibuffer is only displayed on the active window's frame. For instance, the following creates three frames. The minibuffer shows on the first frame (the initial frame created and, thus, the ...
1
vote
1answer
269 views

How can I resume swiper-isearch with the next line selected?

What I'm trying to do is have swiper-isearch resume the last search with the next element selected. The definition of next is the next element from where my cursor currently is. You can read my ...
0
votes
1answer
65 views

How do I prevent `M-x` then `C-g` from entering the debugger?

M-x version gives: GNU Emacs 26.3 (build 1, x86_64-pc-linux-gnu, GTK+ Version 3.22.30) of 2019-12-02 Quitting the minibuffer in general, or (e.g.,) pressing M-x -> C-g in particular opens a *...
1
vote
1answer
102 views

How to cancel the minibuffer with M-x

I have M-x (and also my menu key) mapped to the command helm-M-x. How to write an elisp function or how to configure emacs so that M-x (and the menu key) performs as C-g when the minibuffer is open. ...
0
votes
1answer
124 views

Can icomplete mode be enabled selectively, only for certain commands?

I'd like to use icomplete-mode for certain commands, but not for everything. Is there a way to enable it for just a list of commands I specify?
2
votes
0answers
98 views

emacs pinentry in minibuffer prompt blocks other frames?

I use Emacs in a terminal to read email using mu4e, mbsync. I have PassCmd "gpg2 -q --for-your-eyes-only --no-tty -d ~/.authinfo.gpg | awk '/machine imap.gmail.com login rudolf.sykora@gmail.com/ {...
1
vote
1answer
38 views

How do I set Icicles’s default sort order for filenames?

In general, Icicles sorts things in alphabetical order. However, something I can’t find has made it so filenames are sorted in descending alphabetical order (z, y, x … b, a). I can use C-M-, to ...
0
votes
1answer
50 views

Setting the time for messages in the minibuffer

Messages that appear in the minibuffer disappear too quickly for me to read them. I would like them to last a few more seconds before disappearing. (I know I can press C-h e to see them again.) I ...
1
vote
1answer
82 views

How do I reset minibuffer when it seems to act like a regular buffer?

Occasionally the minibuffer acts somewhat like a "regular" buffer. By that I mean that when I type C-x o my cursor jumps to that buffer and then waits for me to type something. But I can't write ...
1
vote
3answers
261 views

Buffer-local input history for read-from-minibuffer

I've been trying to create a command that, when run, calls another function (my-function) which reads from the minibuffer and does some processing on the input. I want the command history for this ...
2
votes
3answers
278 views

Mark input in swiper-thing-at-point

Having some command automatically populate the input string is a great thing (particularly, I refer to the feature that swiper-thing-at-point provides). However, I would like to enhance this ...
1
vote
1answer
49 views

Display time of “You can run the command … with …” minibuffer hints

I type in, for example, M-x occur and it says You can run the command occur with M-s o. How can I make that last hint display for more than one second?
0
votes
1answer
66 views

How to automatically press the Tab key to execute minibuffer-complete after executing imenu?

I first set up this key binding : (global-set-key (kbd "<f4>") (lambda () (interactive) (other-window -1))) When I use imenu I always have to perform the following steps: Step 1: Press M-x ...
0
votes
1answer
294 views

How to call ivy-occur programmatically?

I would like to programmatically call an ivy or counsel function and then immediately execute ivy-occur to get the ivy-occur buffer. Example: Instead of doing M-x counsel-describe-function and C-c C-...
0
votes
1answer
252 views

Problems with inhibit-message [duplicate]

I'm attempting to suppress certain minibuffer messages, but can't seem to get my configuration to work. There are two stack exchange answers that address this (here and here) and both suggest using a ...
1
vote
2answers
83 views

cycling between minibuffer and last window|buffer

I'd like to cycle between an active minibuffer window and the last recent buffer. 1 (defun cycle-to-minibuffer-window () 2 (interactive) 3 (when (active-minibuffer-window) 4 (if (...
0
votes
1answer
62 views

Minibuffer text alignment problem

The text that is displayed in my mini buffer is misaligned, like this https://imgur.com/a/htfRVI3 Specially all the columns are garbled, like its trying to wrap text? How can I make it so that they ...
0
votes
0answers
71 views

ace-window cursor to minibuffer

How to configure ace-window to put the active cursor always into minibuffer when pressing a special key (like i.e. 'z'). Reason is: I think it would be more convenient to always just press 'z' for ...
0
votes
0answers
81 views

Increase minubuffer font size for quail mode completion

I am trying to increase the font size of the text overlay displayed in the minibuffer when using quail completion without success so far. Does anyone have any idea how to achieve this? EDIT: I was ...
2
votes
2answers
127 views

Prevent showing buffer reversion message while working in the minibuffer

Problem When the file underlying buffer foo is changed, Emacs shows Reverting buffer 'foo'. in the echo area. The problem is that it will do this even when I'm working in the minibuffer, and the ...
3
votes
1answer
253 views

Prevent Emacs from messaging when it writes recentf

I've configured Emacs to save recentf every five minutes by using this code: (run-at-time nil (* 5 60) 'recentf-save-list) It works great, but after writing recentf Emacs feels it has to tell me ...
1
vote
1answer
90 views

In minibuffer forward through search history M-p not work

Windows 10, Emacs 26.1 Steps: Start Emacs Open *scratch* buffer. C-s text C-g C-s visit C-g Nice. Now I want to go backward and forward through search history with M-p and M-n respectively. But I ...
1
vote
1answer
150 views

Browse url at point when clicking and pressing super

I am trying to make emacs open the url displayed under the current point when I left click and press the super key at the same time. I am trying with this code but it does not work (global-set-key (...
0
votes
3answers
546 views

Ido mode - autocomplete in interactively mode

windows 10, emacs 26,1, ido mode I use ido mode. Suppose I start some command M-x magit Then TAB The possible completions are many and fill the screen: I need to continue typing and press TAB to ...