emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Proposal: add a binding for `imenu' under M-g


From: Sean Whitton
Subject: Re: Proposal: add a binding for `imenu' under M-g
Date: Thu, 21 Apr 2022 20:37:22 -0700
User-agent: Notmuch/0.35 Emacs/29.0.50 (x86_64-pc-linux-gnu)

Hello,

On Thu 21 Apr 2022 at 01:50pm -04, Howard Melman wrote:

> Juri Linkov <juri@linkov.net> writes:
>
>> Do you think that additionally to 'M-g i' imenu should be
>> bound also to 'M-g M-i'?  Then it could be typed without
>> releasing the Meta modifier.  But the problem is that
>> 'M-i' is equivalent to 'TAB', so this means taking the
>> keybinding 'M-g TAB' that might have more sense for
>> another command associated with TABs like navigating to
>> the next link, then 'M-g S-TAB' to the previous link, etc.
>
> I don't think imenu deserves two bindings and 'M-g i' is easy enough.
>
> FWIW I use the consult package and bind, as follows:
>
>     (global-set-key (kbd "M-g i") 'consult-imenu)
>     (global-set-key (kbd "M-g M-i") 'consult-imenu-multi)
>
> The second allows completion from the imenu of all buffers
> in the same project with the same major mode.
>
> Consult itself doesn't bind these commands but suggests
> 'M-g 'i and 'M-g I' (capital i).

Huh, interesting that 'M-g i' occurred independently to the consult devs.

-- 
Sean Whitton



reply via email to

[Prev in Thread] Current Thread [Next in Thread]