help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: trouble adding keyboard shortcut to ibuffer mode


From: Christian Seberino
Subject: Re: trouble adding keyboard shortcut to ibuffer mode
Date: Fri, 26 Jun 2020 14:27:09 -0500

Thanks so much.  That worked!

On Fri, Jun 26, 2020 at 12:43 PM Perry Smith <pedz@easesoftware.com> wrote:

> On Jun 26, 2020, at 10:25 AM, Christian Seberino <cseberino@gmail.com>
> wrote:
> >
> > The following does NOT reset C-o (Control key + o) in ibuffer mode.
> > Why not?
> >
> > (add-hook 'ibuffer-mode-hook '(lambda ()
> >                                      (global-set-key (kbd "C-o")
> > 'find-file)
> >                                      (ibuffer-auto-mode t)
> >
> > (ibuffer-switch-to-saved-filter-groups "")
> >                                      ))
>
> My guess is that you need to set that in ibuffer-mode-map.
>
>     (define-key ibuffer-mode-map (kbd "C-o”)
>
> in place of
>
>     (global-set-key …
>
> (This is 100% untested).
>
>


reply via email to

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