Merge pull request #712 from toctan/local-electric
Enable electric-layout-mode only with python-mode
This commit is contained in:
commit
bc8e47984b
1 changed files with 2 additions and 1 deletions
|
@ -96,7 +96,8 @@
|
||||||
(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))
|
||||||
(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))
|
(add-hook 'after-save-hook 'prelude-python-mode-set-encoding nil 'local))
|
||||||
|
|
||||||
(setq prelude-python-mode-hook 'prelude-python-mode-defaults)
|
(setq prelude-python-mode-hook 'prelude-python-mode-defaults)
|
||||||
|
|
Loading…
Reference in a new issue