diff options
| author | jao <jao@gnu.org> | 2026-08-10 10:45:51 +0100 |
|---|---|---|
| committer | jao <jao@gnu.org> | 2026-08-10 10:45:51 +0100 |
| commit | 62d33bb63086b9235f14de693ce141e37a1ea686 (patch) | |
| tree | f92e8fb00b357826d450795bac866f5cec7c7f7a /custom/jao-custom-programming.el | |
| parent | f3f77a4e6d2677d4e0bc644c9fca751b5fc24aac (diff) | |
| download | elibs-62d33bb63086b9235f14de693ce141e37a1ea686.tar.gz elibs-62d33bb63086b9235f14de693ce141e37a1ea686.tar.bz2 | |
python bits
Diffstat (limited to 'custom/jao-custom-programming.el')
| -rw-r--r-- | custom/jao-custom-programming.el | 22 |
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 |
