Commit c2e145b2 authored by Fabián Ezequiel Gallina's avatar Fabián Ezequiel Gallina
Browse files

* lisp/progmodes/python.el (python-mode): Avoid use of set-local to

keep Emacs 24.x compatibility.
parent cbd90e1d
2014-11-16 Fabián Ezequiel Gallina <fgallina@gnu.org>
* progmodes/python.el (python-mode): Avoid use of set-local to
keep Emacs 24.x compatibility.
2014-11-16 Lars Magne Ingebrigtsen <larsi@gnus.org>
* net/shr.el (shr): Move to the new defgroup `web'.
......
......@@ -4301,8 +4301,9 @@ Arguments START and END narrow the buffer region to work on."
#'python-indent-line-function)
(set (make-local-variable 'indent-region-function) #'python-indent-region)
;; Because indentation is not redundant, we cannot safely reindent code.
(setq-local electric-indent-inhibit t)
(setq-local electric-indent-chars (cons ?: electric-indent-chars))
(set (make-local-variable 'electric-indent-inhibit) t)
(set (make-local-variable 'electric-indent-chars)
(cons ?: electric-indent-chars))
;; Add """ ... """ pairing to electric-pair-mode.
(add-hook 'post-self-insert-hook
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment