-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tweak(prog): obsolete
pyenv
and pyvenv
(to be replaced with pet
)
- Loading branch information
1 parent
a20a23e
commit 650b10c
Showing
2 changed files
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
;;; me-pyenv.el --- Python environment integration (replaced with `pet') -*- lexical-binding: t; -*- | ||
|
||
;; Copyright (C) 2022-2024 Abdelhak Bougouffa | ||
|
||
;; Author: Abdelhak Bougouffa (rot13 "nobhtbhssn@srqbencebwrpg.bet") | ||
|
||
;;; Commentary: | ||
|
||
;;; Code: | ||
|
||
(use-package pyvenv | ||
:straight t) | ||
|
||
(use-package pyenv | ||
:straight (:host github :repo "aiguofer/pyenv.el") | ||
:hook (minemacs-first-python-file . +global-pyenv-mode-maybe) | ||
:custom | ||
(pyenv-show-active-python-in-modeline nil) | ||
:config | ||
(defun +global-pyenv-mode-maybe (&optional arg) | ||
"Enable `pyenv-global-mode' if it can be enabled." | ||
(interactive (list (if current-prefix-arg (prefix-numeric-value current-prefix-arg) 'toggle))) | ||
(if (file-executable-p pyenv-executable) | ||
(global-pyenv-mode arg) | ||
(+log! "The %S file doesn't exist or is not executable, `pyenv' cannot be enabled." pyenv-executable)))) | ||
|
||
|
||
(provide 'obsolete/me-pyenv) | ||
|
||
;;; me-pyenv.el ends here |