• 2 Posts
  • 4 Comments
Joined 1 year ago
cake
Cake day: October 19th, 2023

help-circle
  • Following is my configuration for Python; I am using Emacs 29.1 --with-tree-sitter:

      (use-package treesit
        :config
        (setq treesit-language-source-alist
    	  '((python . ("https://github.com/tree-sitter/tree-sitter-python.git"))))
        (add-to-list 'auto-mode-alist
    		 `("\\.py[iw]?\\'\\|python[0-9.]*" . python-ts-mode)))
    
      (use-package eglot
        :hook ((python-mode . eglot-ensure)	; pip install 'python-language-server[all]'
    	   (python-ts-mode . eglot-ensure)))