Merge pull request #693 from toctan/fix-python-electric-rule
Fix python electric layout newline
This commit is contained in:
commit
0722ab665f
1 changed files with 3 additions and 2 deletions
|
@ -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))
|
||||
|
|
Loading…
Reference in a new issue