Skip to content

Commit

Permalink
tweak(pyvenv): remove unnecessary tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed Jan 16, 2024
1 parent fec0f2f commit 2436e29
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions modules/me-prog.el
Original file line number Diff line number Diff line change
Expand Up @@ -146,17 +146,7 @@
"cqd" #'quickrun-select-default))

(use-package pyvenv
:straight t
:config
(defun +pyenv--use-pyvenv-interpreter-h ()
(when pyvenv-virtual-env
(put 'python-shell-interpreter 'previous-value python-shell-interpreter)
(setq python-shell-interpreter (concat pyvenv-virtual-env "python3"))))
(defun +pyenv--restore-interpreter-h ()
(setq python-shell-interpreter (or (get 'python-shell-interpreter 'previous-value) (+standard-value 'python-shell-interpreter))))
:custom
(pyvenv-post-activate-hooks (list #'+pyenv--use-pyvenv-interpreter-h))
(pyvenv-post-deactivate-hooks (list #'+pyenv--restore-interpreter-h)))
:straight t)

(use-package gitlab-ci-mode
:straight t)
Expand Down

0 comments on commit 2436e29

Please sign in to comment.