Fix newline after colon inside a list

This commit is contained in:
toctan 2014-09-18 22:11:28 +08:00
parent 8f06d26de2
commit 0769eb5e7c

View file

@ -87,8 +87,9 @@
(eldoc-mode)
(setq-local electric-layout-rules
'((?: . (lambda ()
(if (python-info-statement-starts-block-p)
'after)))))
(and (zerop (first (syntax-ppss)))
(python-info-statement-starts-block-p)
'after)))))
(when (fboundp #'python-imenu-create-flat-index)
(setq-local imenu-create-index-function
#'python-imenu-create-flat-index))