all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* trouble adding keyboard shortcut to ibuffer mode
@ 2020-06-26 15:25 Christian Seberino
  2020-06-26 17:43 ` Perry Smith
  0 siblings, 1 reply; 3+ messages in thread
From: Christian Seberino @ 2020-06-26 15:25 UTC (permalink / raw)
  To: help-gnu-emacs

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 "")
                                      ))


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: trouble adding keyboard shortcut to ibuffer mode
  2020-06-26 15:25 trouble adding keyboard shortcut to ibuffer mode Christian Seberino
@ 2020-06-26 17:43 ` Perry Smith
  2020-06-26 19:27   ` Christian Seberino
  0 siblings, 1 reply; 3+ messages in thread
From: Perry Smith @ 2020-06-26 17:43 UTC (permalink / raw)
  To: Christian Seberino; +Cc: help-gnu-emacs

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).




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: trouble adding keyboard shortcut to ibuffer mode
  2020-06-26 17:43 ` Perry Smith
@ 2020-06-26 19:27   ` Christian Seberino
  0 siblings, 0 replies; 3+ messages in thread
From: Christian Seberino @ 2020-06-26 19:27 UTC (permalink / raw)
  To: Perry Smith; +Cc: help-gnu-emacs

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).
>
>


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-06-26 19:27 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-06-26 15:25 trouble adding keyboard shortcut to ibuffer mode Christian Seberino
2020-06-26 17:43 ` Perry Smith
2020-06-26 19:27   ` Christian Seberino

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.