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
9 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
18 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
12 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
164 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
24 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
31 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
22 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
56 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
33 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
23 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
169 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
41 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
64 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
108 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
79 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
31 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
46 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
47 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
230 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
224 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
33 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
56 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
217 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
199 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
54 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
53 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
58 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
63 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
114 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
224 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
85 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
129 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
470 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 ...
2
votes
1answer
123 views

What are the implications of working in multiple layers of recursive-edit?

I'm not sure if I fully understand the use-cases of recursive edit. Nor am I sure if I worded this question correctly. But every now and then when I'm doing something I'll look at the minibuffer and ...
0
votes
1answer
73 views

Run function at the end and begin of any minibuffer interaction

I tried to advice read-from-minibuffer and read-string but nothing worked. For example, when I called yes-or-no-p, no advice handlers were called. Is there general way how to detect that user is ...
1
vote
1answer
82 views

What is the variable for having multiple minibuffers?

I remember a while back that I could open a minibuffer within a minibuffer. But now I can't seem remember what the variable was or if it was package specific. I'm using Ivy, Swiper, and Counsel. ...
0
votes
3answers
890 views

How show minibuffer's history of commands

windows 10, Emacs 25.1, Helm I open buffer scratch and execute 3 commands sequence: M-x I-search helm-occur replace-string here sreenshots: Nice. It's work fine. But now I want to show in list ...
2
votes
2answers
213 views

Minibuffer for each window

Is there a way to have a minibuffer window for each window? I don't want recursive minibuffers, just one per window so that I don't have to look to the bottom of the screen when editing a window ...
2
votes
1answer
47 views

Scope minibuffer history to specific Counsel commands

If I run bookmark-jump and use invoke M-p, it cycles through the history of bookmarks specifically. If I run counsel-bookmark-jump, M-p cycles through the generic minibuffer history, which is more or ...
3
votes
1answer
92 views

Can't switch input sources in the minibuffer during Isearch

Incremental search doesn't allow me to switch between different input sources, e.g. US English to French, when I'm typing my search string into the minibuffer. Is there a way to fix this? It happens ...
3
votes
1answer
657 views

Set focus to minibuffer window

Some commands use Emacs' minibuffer to prompt for input. I occasionally do something which moves the focus to another window and away from the minibuffer. In these cases I cycle windows with C-x o ...
0
votes
1answer
265 views

How to prevent Text is read-only error inside minibuffer after typing C-x h and typing text

When This is reproducible in emacs -Q in my version of GNU Emacs running on my Ubuntu machine: GNU Emacs 25.2.2 (x86_64-pc-linux-gnu, GTK+ Version 3.22.21) of 2017-09-22, modified by Debian The ...
2
votes
1answer
382 views

Which faces do Ivy/Counsel use in the minibuffer?

Which faces are being applied to the indicated text, i.e. the strings 3114, M-x, and C-x C-c, in the following screenshot? I am using the packages Ivy and Counsel, in case that is relevant.
2
votes
0answers
85 views

Disable ipython show output in minibuffer

I am using Ipython 3.6.3 with Emacs(elpy enabled) 25.2.2 on Kubuntu 17.10. I realize that sometimes output of Ipython keep showing at minibuffer, which is very annoying. But, I cannot find the value ...
4
votes
1answer
418 views

How can I disable the vertical scroll bar on just the minibuffer?

Look at this tiny scroll bar (circled in red): I think I could use the elisp function set-window-scroll-bars, but I don't know how to specify the minibuffer.
2
votes
1answer
43 views

Mirroring minibuffer contents at point

I have a huge screen, looking down at the minibuffer and then back and forth between my code and the minibuffer (e.g. if I'm isearching) is somewhat annoying. As such I'm wondering if there is a way ...
0
votes
1answer
92 views

Revert buffer messages in echo area obscure minibuffer

My issue is that when I switch git branches in a project, each file that changes needs its buffer to revert, and this message is spat to the echo area for each file. If I try to run a command from the ...
3
votes
1answer
229 views

How to make minibuffer always use the input method of the main buffer?

I use different input methods in different buffers. I would like to have M-x and generally any minibuffer input automatically use the input method of the buffer I am currently working in. How can I ...
3
votes
1answer
229 views

Call function interactively and set initial content

I would like to call a function (find-file) interactively and then set the initial content of the mini buffer to my server's home folder. I got as far as using call-interactively, but after that I'm ...