xenodium / chatgpt-shell

A multi-llm Emacs shell (ChatGPT, Claude, Gemini, Ollama) + editing integrations
https://lmno.lol/alvaro
GNU General Public License v3.0
862 stars 77 forks source link

Remap existing comint-mode keybindings #71

Closed CeleritasCelery closed 1 year ago

CeleritasCelery commented 1 year ago

I was confused when I tried out this package and I would type my prompt and hit enter and nothing would happen. The issue was that I have split out the terminal codes from the key chords in my Emacs so that C-m is separate from RET. This meant that hitting enter was not mapping to correct function.

This change will keep the keybindings consistent with whatever the user has set in their comint-mode, so everything "just works".