all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Perry Smith <pedz@easesoftware.com>
To: Christian Seberino <cseberino@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: trouble adding keyboard shortcut to ibuffer mode
Date: Fri, 26 Jun 2020 12:43:38 -0500	[thread overview]
Message-ID: <3177C6CE-DE49-445C-97C9-7391A4C3AD03@easesoftware.com> (raw)
In-Reply-To: <CAG5-5iJ4j1TyVO3QEFeX6gdfdDqGzTHvc5xLy3x=nMY9i8_z0w@mail.gmail.com>

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	other threads:[~2020-06-26 17:43 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2020-06-26 15:25 trouble adding keyboard shortcut to ibuffer mode Christian Seberino
2020-06-26 17:43 ` Perry Smith [this message]
2020-06-26 19:27   ` Christian Seberino

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3177C6CE-DE49-445C-97C9-7391A4C3AD03@easesoftware.com \
    --to=pedz@easesoftware.com \
    --cc=cseberino@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.