Questions tagged [m-x]
16 questions
11
votes
4 answers
How to make M-x and C-h f share the history?
It's quite common that I'll look through a command's documentation
with C-h f, and then invoke the command with M-x immediately
afterwards.
Right now, the shortest way I've found to “invoke the last view
command” is to copy its name (either from the…

Malabarba
- 22,878
- 6
- 78
- 163
7
votes
2 answers
helm - adding helm-M-x to helm sources
I am able to add few extra sources to helm like this
(setq helm-mini-default-sources '(helm-source-buffers-list
helm-source-recentf
helm-source-dired-recent-dirs
…

Chillar Anand
- 4,042
- 1
- 23
- 52
5
votes
1 answer
M-x sometimes doesn't show me the right options (smex?)
This is most likely a problem with a plugin (caching options, using LRU, etc?), but I'm not good enough to really troubleshoot it. My complete dotfiles (not very extensive) can be found here
I use the following related plugins (and maybe others, but…

Trevoke
- 2,375
- 21
- 34
4
votes
2 answers
Display summary information on command when running Meta-x
Since I'm new to GNU Emacs (version 26.1 running on Debian Stable) I'd like to get some information when invoking a command using Meta-x. Currently I'm only able to see a list of possible completions but I have to guess what the commands are…

n0542344
- 185
- 4
3
votes
2 answers
How do I get an initial M-x argument?
I use an asterisk in my function names, so that to execute one
of my own functions, I would begin by typing M-x *. Now I
would like to save myself a keystroke and achieve the same by
M-X. How do I do that?
I tried defining a keyboard macro with F3…

Toothrot
- 3,204
- 1
- 12
- 30
3
votes
3 answers
How do I persist M-x calls so they can be displayed in MRU order?
I would like it if my Emacs were to save the M-x calls in most-recently used order and if this order could persist and grow across restarts/other sessions. I am using Helm, so I guess I should be asking about helm-M-x, but I thought this would be a…

kuwze
- 191
- 4
2
votes
3 answers
M-x command completions to all occurrences of a substring
If I do M-x insert TAB Emacs shows a list of possible completions like below
Possible completions are:
insert-abbrevs insert-anniversary-diary-entry
insert-block-diary-entry insert-buffer
insert-char …

Name
- 7,689
- 4
- 38
- 84
1
vote
0 answers
Emacs M-x binding on Mac M1
In emacs M-x command-name can be used to invoke a command.
However in Mac M1, for some reason, this is not working.
Basically, I am trying option + x or M-x.
Any idea about this?

Invariance
- 111
- 1
1
vote
1 answer
helm-M-x fuzzy not working (only match if provide proper prefix)
I set helm-M-x-fuzzy-match to true, but it is not working as I want.
For example, if I type log:
I expect it to show clm/toggle-command-log-buffer as well.

dandoh
- 111
- 2
1
vote
1 answer
Commands with Keybindings only
When I run helm-M-x and enter characters, I like to see only those commands which has key-bindings. How I can achieve that? I like to have reverse functionality as well, ie.. commands without key-bindings.

aartist
- 133
- 5
0
votes
1 answer
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.

Dargscisyhp
- 370
- 1
- 12
0
votes
0 answers
multiple-cursors activates M-x automatically
Somehow when running mc/edit-beginnings-of-lines and mc/edit-ends-of-lines it activates M-x for all lines, not letting me use the cursors, how to solve this? I just took a look at .mc-lists.el and there's nothing suspicious there.
0
votes
2 answers
How do I define a function to execute as a command with M-x?
I wish to M-x my-func and let my code run. This seems basic but where can I get more documentation about this, if possible inside emacs itself?

Mini kute
- 15
- 4
0
votes
2 answers
Re invoke M-x command
After running something with M-x some-command, how do folks get back to the same command?
In this example (assume C-x w h is not available please)
I try to match some text between DATABASE_URL=wildcard, and after learning it fails, I go back…

american-ninja-warrior
- 3,773
- 2
- 21
- 40
0
votes
1 answer
Why doesn't generate-new-buffer work in M-x?
According to the documentation generate-new-buffer "buffername" creates a new empty buffer with the given name, yet when I try it in M-x the prompt refuses the name and replaces it with "No match". Does it mean it works with only preconfigured…

vfclists
- 1,347
- 1
- 11
- 28