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: Perry Smith
Subject: Re: trouble adding keyboard shortcut to ibuffer mode
Date: Fri, 26 Jun 2020 12:43:38 -0500

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]