From: Drew Adams <drew.adams@oracle.com>
To: Christopher Howard <christopher@librehacker.com>
Cc: Help Gnu Emacs Mailing List <help-gnu-emacs@gnu.org>
Subject: RE: [External] : bookmark+ keybinding question
Date: Wed, 23 Oct 2024 20:09:47 +0000 [thread overview]
Message-ID: <DS7PR10MB5232E46E83188E03F4BC7243F34D2@DS7PR10MB5232.namprd10.prod.outlook.com> (raw)
In-Reply-To: <87msiuvhhq.fsf@librehacker.com>
> Hi Drew, could you give me a little guidance on something: I'm wanting,
> while viewing the bookmark list, to unbind "\M-o" from the bmkp-bmenu-
> w32-jump-to-marked, because I have a global M-o binding that I use very
> frequently, and this is causing me some inconvenience. I was thinking I
> could do something like this in my init.el:
>
> (add-hook ??? (lambda () (unbind-key "\M-o")))
>
> But I can't seem to figure out the correct hook. I'd rather not edit the
> bookmark+ code itself if I can avoid that.
The first step is finding out what keymap to use.
In this case, it's `bookmark-bmenu-mode-map'.
This is the traditional way to remove a key binding:
bind the key to nil in the particular map.
(define-key bookmark-bmenu-mode-map "\M-o" nil)
(In recent Emacs versions there are also `unbind-key'
and `keymap-unset'.)
next prev parent reply other threads:[~2024-10-23 20:09 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-10-23 17:47 bookmark+ keybinding question Christopher Howard
2024-10-23 20:09 ` Drew Adams [this message]
2024-10-23 22:04 ` [External] : " Christopher Howard
2024-10-24 2:19 ` Drew Adams
2024-10-24 2:23 ` Drew Adams
2024-10-26 10:16 ` Robert Pluim
2024-10-28 16:55 ` Christopher Howard
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
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=DS7PR10MB5232E46E83188E03F4BC7243F34D2@DS7PR10MB5232.namprd10.prod.outlook.com \
--to=drew.adams@oracle.com \
--cc=christopher@librehacker.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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).