Browse Source

Merge pull request #712 from toctan/local-electric

Enable electric-layout-mode only with python-mode
custom
Bozhidar Batsov 11 years ago
parent
commit
bc8e47984b
  1. 3
      modules/prelude-python.el

3
modules/prelude-python.el

@ -96,7 +96,8 @@
(when (fboundp #'python-imenu-create-flat-index)
(setq-local imenu-create-index-function
#'python-imenu-create-flat-index))
(electric-layout-mode +1)
(add-hook 'post-self-insert-hook
#'electric-layout-post-self-insert-function nil 'local)
(add-hook 'after-save-hook 'prelude-python-mode-set-encoding nil 'local))
(setq prelude-python-mode-hook 'prelude-python-mode-defaults)

Loading…
Cancel
Save