Open goodmorning-hwt opened 1 month ago
Depends strongly on how you are loading copilot in the first place. If you are using use-package
, then check their readme, especially the passage where they explain how to use :mode
(the python example there will make it so that python-mode
is automatically activated when you open .py files).
Depends strongly on how you are loading copilot in the first place. If you are using
use-package
, then check their readme, especially the passage where they explain how to use:mode
(the python example there will make it so thatpython-mode
is automatically activated when you open .py files).
I use spacemacs, and I do not know how spacemacs organize additional packages, I just copied the readme's instruction.ðŸ˜
(add-hook 'prog-mode-hook 'my/disable-copilot-mode)
(add-hook 'latex-mode-hook 'my/enable-copilot-m)
I used these lines now to disable copilot in some mode. However, in this way, the Emacs starts the copilot first and then disable it, which I believe is unnecessary.
If you don't want copilot starting in prog-mode just remove the (add-hook 'prog-mode-hook 'my/disable-copilot-mode)
line.
How can I set copilot-mode enable by deafult in certain modes and disable in others? Thanks in advance for any help!