Enable electric-layout-mode only with python-mode

This commit is contained in:
toctan 2014-10-15 18:23:31 +08:00
parent 2440f7fda9
commit 7a51853b05

View file

@ -93,7 +93,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)