cybniv/poetry.el

Hide poetry venv info in the modeline

Closed this issue · 1 comments

Hi, i'm using poetry for my python projects and i can't find what to set to hide the poetry venv name in the doom modeline (see screen "venv: test-python-...")

Screenshot1

I though it was a doom modeline problem but the text also appears when it is disabled :

Screenshot2

I tried few things like diminish but I cant find a way to hide this text

I found the solution, it was not a poetry issue but a doom emacs one. Just comment those line in emacsdir/modules/lang/python/config.el :

(use-package! pyvenv
  :after python
  :init
  (when (modulep! :ui modeline)
    (add-hook 'pyvenv-post-activate-hooks #'+modeline-update-env-in-all-windows-h)
    (add-hook 'pyvenv-pre-deactivate-hooks #'+modeline-clear-env-in-all-windows-h))
  :config
  (add-hook 'python-mode-local-vars-hook #'pyvenv-track-virtualenv)
  ;; (add-to-list 'global-mode-string
  ;;             '(pyvenv-virtual-env-name (" venv:" pyvenv-virtual-env-name " "))
  ;;              'append)
  )