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

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

RE: [External] : bookmark+ keybinding question


From: Drew Adams
Subject: RE: [External] : bookmark+ keybinding question
Date: Wed, 23 Oct 2024 20:09:47 +0000

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


reply via email to

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