aboutsummaryrefslogtreecommitdiffstats
path: root/lisp/progmodes/python.el
diff options
context:
space:
mode:
Diffstat (limited to 'lisp/progmodes/python.el')
-rw-r--r--lisp/progmodes/python.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/lisp/progmodes/python.el b/lisp/progmodes/python.el
index d6c4199cc94..3e204a92cd3 100644
--- a/lisp/progmodes/python.el
+++ b/lisp/progmodes/python.el
@@ -4301,8 +4301,9 @@ Arguments START and END narrow the buffer region to work on."
4301 #'python-indent-line-function) 4301 #'python-indent-line-function)
4302 (set (make-local-variable 'indent-region-function) #'python-indent-region) 4302 (set (make-local-variable 'indent-region-function) #'python-indent-region)
4303 ;; Because indentation is not redundant, we cannot safely reindent code. 4303 ;; Because indentation is not redundant, we cannot safely reindent code.
4304 (setq-local electric-indent-inhibit t) 4304 (set (make-local-variable 'electric-indent-inhibit) t)
4305 (setq-local electric-indent-chars (cons ?: electric-indent-chars)) 4305 (set (make-local-variable 'electric-indent-chars)
4306 (cons ?: electric-indent-chars))
4306 4307
4307 ;; Add """ ... """ pairing to electric-pair-mode. 4308 ;; Add """ ... """ pairing to electric-pair-mode.
4308 (add-hook 'post-self-insert-hook 4309 (add-hook 'post-self-insert-hook