Fix python-enable-yapf-format-on-save

This commit is contained in:
magia 2016-11-22 13:02:08 +08:00 committed by Boris
parent c9d332fbf1
commit 281410de11

View file

@ -440,7 +440,9 @@ fix this issue."
(defun python/init-yapfify ()
(use-package yapfify
:defer t
:init (spacemacs/set-leader-keys-for-major-mode 'python-mode
"=" 'yapfify-buffer)
:config (when python-enable-yapf-format-on-save
(add-hook 'python-mode-hook 'yapf-mode))))
:init
(progn
(spacemacs/set-leader-keys-for-major-mode 'python-mode
"=" 'yapfify-buffer)
(when python-enable-yapf-format-on-save
(add-hook 'python-mode-hook 'yapf-mode)))))