diff --git a/modules/lang/python/config.el b/modules/lang/python/config.el index 6e7a54c48..6739dc71d 100644 --- a/modules/lang/python/config.el +++ b/modules/lang/python/config.el @@ -219,9 +219,8 @@ (use-package! poetry :when (modulep! +poetry) :after python - :init - (setq poetry-tracking-strategy 'switch-buffer) - (add-hook 'python-mode-hook #'poetry-tracking-mode)) + :hook (doom-first-buffer . poetry-tracking-mode) + :init (setq poetry-tracking-strategy 'switch-buffer)) (use-package! cython-mode