10
submitted 2 weeks ago by NanoooK@sh.itjust.works to c/emacs@lemmy.ml
you are viewing a single comment's thread
view the rest of the comments
[-] tomenzgg@midwest.social 3 points 2 weeks ago

I tend to like it, too (though I can't tell if that's just because it's what I first used and now I just expect it to work that way, now…).

Do you know if there's a way to go backwards through available options, though? I forget what shift+tab does but its not the inverse of tab and having to cycle all the way through to come back around on a particularly large list of options sure is tedious.

I think that's just about my only complaint with the default.

[-] sachac@lemmy.ml 2 points 1 week ago
[-] tomenzgg@midwest.social 2 points 1 week ago* (last edited 1 week ago)

Not quite (though I hadn't realized, before this thread, that such an option existed); I was more thinking of tabbing in the opposite direction for minibuffer-complete.

I sort of lay out everything in the comment at https://midwest.social/comment/24082938 but the short of it is that I realized that minibuffer-complete does have functionality already built it: it just doesn't seem to work when trying to to autocompletion in Eval:. So I didn't realize that it'd work in circumstances like M-x.

Thanks so much for the suggestion, though! 'Appreciate the help.

[-] Oinks@lemmy.blahaj.zone 2 points 2 weeks ago* (last edited 2 weeks ago)

Shift-Tab just does the correct thing for me on Emacs 30.2. That might be a newer default though.

I think on an older version something like this should do it:

(keymap-set completion-list-mode-map "<backtab>" #'previous-completion)

This only works when the completion buffer is selected though (e.g. via completion-auto-select). I'm not really sure how to get useful backtab behavior in the minibuffer itself.

Edit -- These bindings might be worth trying as well if you don't like the auto selection:

(keymap-set minibuffer-local-completion-map "<tab>"     #'minibuffer-next-completion)
(keymap-set minibuffer-local-completion-map "<backtab>" #'minibuffer-previous-completion)
[-] tomenzgg@midwest.social 3 points 2 weeks ago

So it's possible I just never noticed the message noting minibuffer-next/previous-completion but those are pretty cool.

But I think I was more thinking of tabbing in the opposite direction for minibuffer-complete; the situation I'm most often finding myself with such an abundance of options is when I'm exploring available functions and just looking; I rarely want to go one-by-one in such a scenario.

…but what I just discovered is that functionality is already provided (I was confused when I saw that "backtab" was already assigned in minibuffer-local-completion-map); it just doesn't seem to be there when auto-completing in Eval: (which just responds with " is undefined"); which is how I'm most often looking at other available functions. That must be why I thought it never worked.

Welp, I appreciate the info., regardless; I definitely learned a bit more than I knew before. And it's good to know backtab will actually work in M-x, if I ever find I need it.

this post was submitted on 08 May 2026
10 points (100.0% liked)

Emacs

2870 readers
11 users here now

Our infinitely powerful editor.

founded 6 years ago
MODERATORS