summary refs log tree commit diff
path: root/config/init-python.el
diff options
context:
space:
mode:
Diffstat (limited to 'config/init-python.el')
-rw-r--r--config/init-python.el10
1 files changed, 9 insertions, 1 deletions
diff --git a/config/init-python.el b/config/init-python.el
index 6a4372a..847304f 100644
--- a/config/init-python.el
+++ b/config/init-python.el
@@ -9,12 +9,20 @@
 
 (use-package python-mode
   :hook ((python-mode . tree-sitter-hl-mode)
-         (python-mode . eglot-ensure)))
+         (python-mode . eglot-ensure))
+  :custom
+  ;; if set to an absolute path, pyvenv won't work
+  (python-shell-interpreter "python3"))
 
 (use-package blacken
   :ensure t
   :hook (python-mode . blacken-mode))
 
+(use-package pyvenv
+  :ensure t
+  :config
+  (pyvenv-mode 1))
+
 (provide 'init-python)
 
 ;;; init-python.el ends here