Python extension has been updated

This commit is contained in:
Sameer Rahmani 2018-07-04 11:38:42 +01:00
parent 71e212868f
commit 91b0e9b10f
2 changed files with 13 additions and 5 deletions

View File

@ -5,6 +5,8 @@
;; Dependencies ----------------------------------
(depends-on 'anaconda-mode)
(depends-on 'company-anaconda)
(depends-on 'virtualenvwrapper)
(depends-on 'flycheck)
(depends-on 'pyvenv)
(with-ability kivy-editor

View File

@ -98,11 +98,17 @@
(defun extensions/python-initialize ()
(message "Initializing 'python' extension.")
(ability venv ()
"Virtualenv support"
(require 'virtualenvwrapper)
(venv-initialize-interactive-shells)
(venv-initialize-eshell)
)
(ability python-editor ()
"Gives FG42 the ability to edit pytho codes."
(add-hook 'python-mode-hook 'python-mode-defaults)
(add-hook 'after-init-hook #'global-flycheck-mode)
(when (fboundp 'exec-path-from-shell-copy-env)
(exec-path-from-shell-copy-env "PYTHONPATH"))