From b15cdb2ee6eb697a2ff1c7fe90c8dbe24cf032aa Mon Sep 17 00:00:00 2001 From: Eshel Yaron Date: Sun, 6 Oct 2024 09:00:33 +0200 Subject: [PATCH] Revert "Support electric-layout-mode in python-base-mode" This reverts commit 9b814a0268e794e6d900a9a16cb45c685b7af8c3. --- lisp/progmodes/python.el | 5 ----- 1 file changed, 5 deletions(-) diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el index f66e3a1724e..63064ff4de9 100644 --- a/lisp/progmodes/python.el +++ b/lisp/progmodes/python.el @@ -7066,11 +7066,6 @@ implementations: `python-mode' and `python-ts-mode'." (setq-local electric-indent-inhibit t) (setq-local electric-indent-chars (cons ?: electric-indent-chars)) - (setq-local electric-layout-rules - `((?: . ,(lambda () - (and (zerop (car (syntax-ppss))) - (python-info-statement-starts-block-p) - 'after))))) ;; Add """ ... """ pairing to electric-pair-mode. (add-hook 'post-self-insert-hook -- 2.39.2