From 46c20581415092e462e20eca5f9ea4ebf724d546 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Wed, 3 Sep 2025 18:06:52 +0200 Subject: [PATCH] fix(default): void-variable python-mode-map Seems `smartparens-python` no longer eagerly loads the `python` package. --- modules/config/default/config.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/modules/config/default/config.el b/modules/config/default/config.el index 8857a43c3..60e54beec 100644 --- a/modules/config/default/config.el +++ b/modules/config/default/config.el @@ -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 - (define-key (or (bound-and-true-p python-base-mode-map) - python-mode-map) - (kbd "DEL") nil) + (after! python + (define-key (or (bound-and-true-p python-base-mode-map) + python-mode-map) + (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))))