Merge branch 'master' of github.com:bbatsov/prelude
This commit is contained in:
commit
5bc3ceb6d1
1 changed files with 3 additions and 2 deletions
|
@ -87,8 +87,9 @@
|
||||||
(eldoc-mode)
|
(eldoc-mode)
|
||||||
(setq-local electric-layout-rules
|
(setq-local electric-layout-rules
|
||||||
'((?: . (lambda ()
|
'((?: . (lambda ()
|
||||||
(if (python-info-statement-starts-block-p)
|
(and (zerop (first (syntax-ppss)))
|
||||||
'after)))))
|
(python-info-statement-starts-block-p)
|
||||||
|
'after)))))
|
||||||
(when (fboundp #'python-imenu-create-flat-index)
|
(when (fboundp #'python-imenu-create-flat-index)
|
||||||
(setq-local imenu-create-index-function
|
(setq-local imenu-create-index-function
|
||||||
#'python-imenu-create-flat-index))
|
#'python-imenu-create-flat-index))
|
||||||
|
|
Loading…
Reference in a new issue