Merge pull request #712 from toctan/local-electric

Enable electric-layout-mode only with python-mode
This commit is contained in:
Bozhidar Batsov 2014-10-16 10:13:22 +03:00
commit bc8e47984b

View file

@ -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)