copilot-emacs / copilot.el

An unofficial Copilot plugin for Emacs.
MIT License
1.71k stars 122 forks source link

Documentation surrounding how the language is detected seems incomplete in light of recent commit #278

Open aezarebski opened 3 months ago

aezarebski commented 3 months ago

The documentation of how the programming language is detected,

https://github.com/copilot-emacs/copilot.el?tab=readme-ov-file#programming-language-detection

is incomplete now there is a mechanism to pull this from the minor mode as well (which is great, thank you!),

https://github.com/copilot-emacs/copilot.el/commit/4e203efaa1f4047c800a026ba496d3bda8b67119

Perhaps the following could be added:

In some situations, e.g. writing git commit messages, it is useful to be able to extract the languageId from the minor mode. This is configured by the copilot-minor-mode-alist.