minus-squareaqua0210@alien.topBtoEmacs@communick.news•What is yours configuration for python?linkfedilinkEnglisharrow-up1·1 year agoI use Emacs 29.1 or Emacs 30, because: they have built in LSP support by Eglot. they have built in tree-sitter support by python-ts-mode And I use pyright as the LSP backend. After install pyright, just start Emacs, open python file and M-x eglot will fire up the lsp support. For the python virtual environment, I use envr(direnv)on macOS and Linux, use pyvenv on Windows platform. You can see my personal configuration here: https://github.com/Eason0210/.emacs.d/blob/6428e1a3be904a97ee354c955c879baeed90c099/init.el#L873-L948 linkfedilink
I use Emacs 29.1 or Emacs 30, because:
Eglot
.python-ts-mode
And I use pyright as the LSP backend.
After install
pyright
, just start Emacs, open python file andM-x eglot
will fire up the lsp support.For the python virtual environment, I use
envr(direnv)
on macOS and Linux, usepyvenv
on Windows platform.You can see my personal configuration here:
https://github.com/Eason0210/.emacs.d/blob/6428e1a3be904a97ee354c955c879baeed90c099/init.el#L873-L948