Python extension has been updated
This commit is contained in:
parent
71e212868f
commit
91b0e9b10f
|
@ -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
|
||||
|
|
|
@ -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"))
|
||||
|
||||
|
|
Loading…
Reference in New Issue