Make poetry a bit more responsive

This commit is contained in:
Gergely Polonkai 2020-03-03 06:20:34 +01:00
parent ea0303af23
commit 26da644ad7
No known key found for this signature in database
GPG Key ID: 38F402C8471DDE93
1 changed files with 6 additions and 1 deletions

View File

@ -2768,7 +2768,12 @@ Because its also great.
#+BEGIN_SRC emacs-lisp #+BEGIN_SRC emacs-lisp
(use-package poetry (use-package poetry
:config :config
(poetry-tracking-mode)) (poetry-tracking-mode)
(remove-hook 'post-command-hook 'poetry-track-virtualenv)
:hook
(poetry-tracking-mode . (lambda () (remove-hook 'post-command-hook 'poetry-track-virtualenv)))
(python-mode . poetry-track-virtualenv)
(projectile-after-switch-project-hook . poetry-track-virtualenv))
#+END_SRC #+END_SRC
** Automatically insert Sphinx-style docstrings ** Automatically insert Sphinx-style docstrings