I'm using drag-stuff, which defines a minor-mode (drag-stuff-mode
), a corresponding keymap (drag-stuff-mode-map
), and a globalized minor mode (drag-stuff-global-mode
).
I want to make some changes to the default keybindings, and I'd like to use the globalized minor mode, but my changes to the keymap don't seem to affect the globalized minor mode.
For example, after turning on drag-stuff-global-mode
, describing drag-stuff-mode-map
shows:
(keymap
(M-left . drag-stuff-left)
(M-right . drag-stuff-right)
(M-down . drag-stuff-down)
(M-up . drag-stuff-up))
I want to undefine M-left
, so I evaluate:
(define-key drag-stuff-mode-map [M-left] nil)
but drag-stuff-mode-map
remains unchanged, and I can confirm that M-left
is still bound to drag-stuff-left
.
If I use the regular (local) minor mode, everything behaves as expected, it's only when using the globalized minor mode that I run into this.
What's going on, and how can I achieve what I'm trying to do?