copilot-emacs / copilot.el

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

feat: add: send minor mode language id to copilot #274

Closed ncaq closed 3 months ago

ncaq commented 4 months ago

What

If there is a match for minor-mode before major-mode, it is sent to Copilot as a language id.

Why

Because git-commit-mode in git-commit.el is currently minor-mode and major-mode specifies text-mode, markdown-mode, etc. I felt that the accuracy was improved when this was correctly recognized as writing git commit messages.