doom

My literate doom emacs config
git clone https://github.com/michaelneuper/doom.git
Files | Log | Refs

commit 348367a5ef62dac880814d7f85c98cb1d2cf85bd
parent 8f13466d76e1cb9bc4739e9a2ee067e6580a3b04
Author: Michael Neuper <michael@michaelneuper.com>
Date:   Sun, 17 Nov 2024 15:46:05 +0200

fix eglot python not working

Diffstat:
Mconfig.org | 9+++++++++
Minit.el | 2+-
2 files changed, 10 insertions(+), 1 deletion(-)

diff --git a/config.org b/config.org @@ -207,3 +207,12 @@ :desc "Open ORUI" "u" #'org-roam-ui-open)) #+end_src +*** python +#+begin_src emacs-lisp +(after! eglot + (add-to-list 'eglot-server-programs '(python-mode . ("pyright-langserver" "--stdio")))) + +(add-hook! python-mode + (setq python-shell-interpreter "python3.12" + doom-modeline-env-python-executable "python3.12")) +#+end_src diff --git a/init.el b/init.el @@ -143,7 +143,7 @@ ;;plantuml ; diagrams for confusing people more ;;graphviz ; diagrams for confusing yourself even more ;;purescript ; javascript, but functional - (python +lsp +pyright +tree-sitter) ; beautiful is better than ugly + (python +lsp +tree-sitter) ; beautiful is better than ugly ;;qt ; the 'cutest' gui framework ever ;;racket ; a DSL for DSLs ;;raku ; the artist formerly known as perl6