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))))