fix(default): void-variable python-mode-map

Seems `smartparens-python` no longer eagerly loads the `python` package.
This commit is contained in:
Henrik Lissner
2025-09-03 18:06:52 +02:00
parent 45546ea25d
commit 46c2058141

View File

@@ -276,9 +276,10 @@ or if the current buffer is read-only or not file-visiting."
(sp-local-pair "f'''" "'''")
(sp-local-pair "f'" "'"))
;; Original keybind interferes with smartparens rules
(after! python
(define-key (or (bound-and-true-p python-base-mode-map)
python-mode-map)
(kbd "DEL") nil)
(kbd "DEL") nil))
;; Interferes with the def snippet in doom-snippets
;; TODO Fix this upstream, in doom-snippets, instead
(setq sp-python-insert-colon-in-function-definitions nil))))