summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--custom/jao-custom-programming.el22
1 files changed, 16 insertions, 6 deletions
diff --git a/custom/jao-custom-programming.el b/custom/jao-custom-programming.el
index e9b1265..b987ea0 100644
--- a/custom/jao-custom-programming.el
+++ b/custom/jao-custom-programming.el
@@ -621,11 +621,11 @@
(t "prolog")))))
;;;; Python
-;; (use-package virtualenvwrapper
-;; :ensure t
-;; :config
-;; (venv-initialize-eshell)
-;; (jao-compilation-env "VIRTUAL_ENV"))
+(use-package virtualenvwrapper
+ :ensure t
+ :config
+ (venv-initialize-eshell)
+ (jao-compilation-env "VIRTUAL_ENV"))
(use-package uv-mode
:ensure t
@@ -635,7 +635,17 @@
:init
(setq-default eglot-workspace-configuration
'((:python . (:analysis (:typeCheckingMode "off")))))
- :hook (python-base-mode . eglot-ensure))
+ (setq python-shell-interpreter "uv"
+ python-shell-interpreter-args "run ipython -i --simple-prompt"
+ python-shell-interpreter-args "run python -i")
+ (defun jao-python-mode-hook ()
+ (setq-local eglot-prefer-plaintext t)
+ (eglot-ensure))
+ ;; (with-eval-after-load 'eglot
+ ;; (add-to-list 'eglot-server-programs
+ ;; '((python-base-mode :language-id "python") . ("ty" "server"))))
+
+ :hook (python-base-mode . jao-python-mode-hook))
;;;; Javascript