Skip to content

Commit

Permalink
fix yapf still being in extension, causing its loading to fail
Browse files Browse the repository at this point in the history
  • Loading branch information
Tritlo committed Apr 21, 2016
1 parent 5f26b82 commit 84f7f5a
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions layers/+lang/python/extensions.el
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
nose
pylookup
python-compile
py-yapf
))

;; Initialize the extensions
Expand Down Expand Up @@ -65,11 +64,3 @@
(setq pylookup-dir (concat dir "pylookup/")
pylookup-program (concat pylookup-dir "pylookup.py")
pylookup-db-file (concat pylookup-dir "pylookup.db"))))))

(defun python/init-py-yapf ()
(use-package py-yapf
:init
(spacemacs/set-leader-keys-for-major-mode 'python-mode "=" 'py-yapf-buffer)
:config
(if python-enable-yapf-format-on-save
(add-hook 'python-mode-hook 'py-yapf-enable-on-save))))

0 comments on commit 84f7f5a

Please sign in to comment.