Setting up bindings for Python Mode (and its Tree Sitter variant) with the following use-package
form mysteriously fails:
(use-package python
:bind (:map python-mode-map
("C-x *" . #'whitespace-mode)
("C-c C-v" . #'bci/python-check)))
When editing Python Mode buffers, I have python-mode
remapped to python-ts-mode
via major-mode-remap-alist
.
(Note: this question is edited from a previous version which asked more specifically about a failing invocation of keymap-local-set
, which turned out to involve a simple mistake involving quoting. However, as my original question was an instance of the XY Problem, the question has been updated to ask about my initial, more general problem.)
M-x version: GNU Emacs 31.0.50 (build 3, x86_64-pc-linux-gnu, GTK+ Version 3.24.38, cairo version 1.16.0) of 2024-11-21