~willvaughn/.emacs.d

76d03d7f3323d7e6bd68ec02812136af1b9dc616 — William Vaughn 8 months ago 4496a94
tree sitter for clojure, move python configurations
2 files changed, 20 insertions(+), 14 deletions(-)

M lisp/wv-clojure.el
M lisp/wv-python.el
M lisp/wv-clojure.el => lisp/wv-clojure.el +3 -1
@@ 1,7 1,9 @@
;;; lisp/wv-clojure.el -*- lexical-binding: t; -*-

(use-package clojure-mode
  :hook (clojure-mode . rainbow-delimiters-mode))
  :hook ((clojure-mode . rainbow-delimiters-mode)
         (clojure-mode . tree-sitter-mode)
         (clojure-mode . tree-sitter-hl-mode)))

(use-package cider
  :config

M lisp/wv-python.el => lisp/wv-python.el +17 -13
@@ 1,23 1,27 @@
;;; lisp/wv-python.el -*- lexical-binding: t; -*-

(use-package python
  :hook
  ((python-mode . tree-sitter-mode)
   (python-mode . tree-sitter-hl-mode))
  :config
  (setq-default eglot-workspace-configuration
                '(:pylsp
                  (:plugins
                   (:black (:enabled t)
                    :rope_autoimport (:enabled :json-false)
                    :pylsp-mypy (:enabled t
                                 :live-mode :json-false
                                 :strict :json-false)
                    :pycodestyle (:enabled :json-false)
                    :mccabe (:enabled :json-false))))))

(use-package pyvenv
  :after python
  :custom
  (pyvenv-default-virtual-env-name ".venv")
  :hook
  ((python-mode-local-vars . pyvenv-track-virtualenv)
   (python-mode . tree-sitter-mode)
   (python-mode . tree-sitter-hl-mode))
  :config
  (setq-default eglot-workspace-configuration
                '(:pylsp (:plugins
                          (:black (:enabled t)
                           :rope_autoimport (:enabled :json-false)
                           :pylsp-mypy (:enabled t
                                        :live-mode :json-false
                                        :strict :json-false)
                           :pycodestyle (:enabled :json-false)
                           :mccabe (:enabled :json-false)))))
  ((python-mode-local-vars . pyvenv-track-virtualenv))
  :init
  (pyvenv-mode t)
  (add-hook 'pyvenv-post-activate-hooks #'pyvenv-restart-python)