From 47f70f698e3c3e02f17d6b9480ce39f79436be45 Mon Sep 17 00:00:00 2001 From: Thomas Schneider Date: Mon, 26 Aug 2024 17:55:45 +0200 Subject: Emacs: Replace elpy with python(-ts)-mode, lsp, and pet --- dot.emacs.d/init.el | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) (limited to 'dot.emacs.d/init.el') diff --git a/dot.emacs.d/init.el b/dot.emacs.d/init.el index b80cc05..afa0c55 100644 --- a/dot.emacs.d/init.el +++ b/dot.emacs.d/init.el @@ -104,11 +104,12 @@ ("M-RET" . #'srefactor-refactor-at-point)) :after project) -(use-package elpy - :ensure t - :defer t +(use-package python + :ensure nil + :hook ((python-mode python-ts-mode) . lsp)) +(use-package pet :init - (advice-add 'python-mode :before 'elpy-enable)) + (add-hook 'python-base-mode-hook 'pet-mode -10)) (use-package lsp-mode :commands lsp -- cgit v1.2.3