Skip to content

Commit

Permalink
fix(pet): hook pet-mode in Python
Browse files Browse the repository at this point in the history
  • Loading branch information
abougouffa committed May 17, 2024
1 parent dd7679f commit 440936f
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions modules/me-tools.el
Original file line number Diff line number Diff line change
Expand Up @@ -192,13 +192,8 @@
(use-package pet
:straight t
:when (and (or (executable-find "dasel") (executable-find "yq")) (executable-find "sqlite3"))
:config
(+add-hook! python-base-mode :depth -30
(setq-local python-shell-interpreter (pet-executable-find "python")
python-shell-virtualenv-root (pet-virtualenv-root))

;; Setup Eglot support
(pet-eglot-setup)))
:init
(add-hook (if (< emacs-major-version 29) 'python-mode-hook 'python-base-mode-hook) #'pet-mode))

(use-package verb
:straight t)
Expand Down

0 comments on commit 440936f

Please sign in to comment.