Fix python-enable-yapf-format-on-save
This commit is contained in:
parent
c9d332fbf1
commit
281410de11
1 changed files with 6 additions and 4 deletions
|
@ -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)))))
|
||||
|
|
Reference in a new issue