From 62d33bb63086b9235f14de693ce141e37a1ea686 Mon Sep 17 00:00:00 2001 From: jao Date: Mon, 10 Aug 2026 10:45:51 +0100 Subject: python bits --- custom/jao-custom-programming.el | 22 ++++++++++++++++------ 1 file changed, 16 insertions(+), 6 deletions(-) (limited to 'custom') 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 -- cgit v1.2.3