Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable tracking mode #38

Open
PyB1l opened this issue Apr 11, 2022 · 3 comments
Open

Disable tracking mode #38

PyB1l opened this issue Apr 11, 2022 · 3 comments

Comments

@PyB1l
Copy link

PyB1l commented Apr 11, 2022

Is there a way to permanent disable tracking mode?

@calebstewart
Copy link

I think this is only a problem when using something like Doom which automatically adds the hook to python-mode (ref). That being said, this is exactly the problem I was trying to solve as well.

I do this by hooking python-mode to disable poetry-tracking-mode. This is sort of hacky since technically it is enabled, and then immediately disabled when entering python-mode, but it does work. I added the following to my config.el for Doom:

; Stop enabling poetry tracking mode
(add-hook 'python-mode-hook (lambda () (poetry-tracking-mode -1)))

If anyone has a better way to do this, though, I'd love to hear it.

@calebstewart
Copy link

Another workaround I found that may be a bit better in some cases is to completely destroy poetry-tracking-mode altogether by overriding the function. This may have unintended side-effects, but it's working for me right now. I'm okay with losing access to that mode considering it's so slow it's practically useless.

(advice-add 'poetry-tracking-mode :override (lambda () ()))

@awerdx520
Copy link

poetry-tracking-mode can be removed from python-mode-hook in Doom.

(after! python
  (remove-hook! 'python-mode-hook 'poetry-tracking-mode))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants