Change how shell env is injected #449
Changes the behavior of the :env setting to fetch the shell variables immediately on call.
This commit is contained in:
parent
45096c2ab6
commit
738f39d21a
3 changed files with 11 additions and 9 deletions
|
@ -1,7 +1,5 @@
|
|||
;;; lang/python/config.el -*- lexical-binding: t; -*-
|
||||
|
||||
(set! :env "PYTHONPATH" "PYENV_ROOT")
|
||||
|
||||
(defvar +python-pyenv-root nil
|
||||
"The path to pyenv's root directory. This is automatically set when `python'
|
||||
is loaded.")
|
||||
|
@ -26,6 +24,7 @@ is loaded.")
|
|||
:config
|
||||
(add-hook! 'python-mode-hook #'(flycheck-mode highlight-numbers-mode))
|
||||
|
||||
(set! :env "PYTHONPATH" "PYENV_ROOT")
|
||||
(set! :company-backend 'python-mode '(company-anaconda))
|
||||
(set! :electric 'python-mode :chars '(?:))
|
||||
(set! :repl 'python-mode #'+python/repl)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue