]> git.eshelyaron.com Git - emacs.git/commitdiff
Revert "Support electric-layout-mode in python-base-mode"
authorEshel Yaron <me@eshelyaron.com>
Sun, 6 Oct 2024 07:00:33 +0000 (09:00 +0200)
committerEshel Yaron <me@eshelyaron.com>
Sun, 6 Oct 2024 07:00:33 +0000 (09:00 +0200)
This reverts commit 9b814a0268e794e6d900a9a16cb45c685b7af8c3.

lisp/progmodes/python.el

index f66e3a1724ea880f721ad2f2203dc4a972e1d5cc..63064ff4de902501233c48c2b215f789816f1cb5 100644 (file)
@@ -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