Long story short, there's a little library I like but I don't like any of the default keybindings. E.g. it's a global minor mode and binds a function to
C-c C-s, but that shadows
org-schedule in my org and org-agenda buffers.
I want to keep the little library but get rid of all the bindings in the little library keymap.
In an early attempt to do this, I tried the following (after confirming that
little-library-mode-map is where the bindings live):
(with-eval-after-load "little-library-mode" (setq little-library-mode-map (make-sparse-keymap)))
The code "succeeds" (
C-h v little-library-mode-map RET shows that it's just
(keymap) now) but all the little library keybindings still "work" (
C-c C-s still does the little library function, including in org and org-agenda buffers).
I've found another way to solve my issue, but I'm really curious why this approach fails. Emacs' keybindings still seem like black magic to me.