Browse Source

Merge branch 'master' of github.com:bbatsov/prelude

custom
Bozhidar Batsov 11 years ago
parent
commit
5bc3ceb6d1
  1. 5
      modules/prelude-python.el

5
modules/prelude-python.el

@ -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)
'after)))))
(and (zerop (first (syntax-ppss)))
(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…
Cancel
Save