Enable electric-layout-mode only with python-mode
This commit is contained in:
parent
2440f7fda9
commit
7a51853b05
1 changed files with 2 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue