Closed hongyi-zhao closed 1 year ago
I don't see where the conflict is. gptel-send
is not bound to any key unless you're in a special buffer you create with M-x gptel
-- in which case you're not in latex-mode
.
Say, I'm in AUCTeX buffer, C-c RET
will not trigger gptel-send
, and as an alternative, now I rebound it to F2
.
Say, I'm in AUCTeX buffer,
C-c RET
will not triggergptel-send
, and as an alternative, now I rebound it toF2
.
Sorry, I don't follow. gptel-send
is not bound to any key, so you're free to bind it as you please, or just call M-x gptel-send
. So where is the conflict?
If so, why do you give the following description:
It's bound to C-c RET
in dedicated gptel buffers, i.e. one created using M-x gptel
. But this is a markdown or org buffer (depending on the value of gptel-default-mode
), not an AuCTeX buffer.
Of the two ways of using gptel (in a dedicated chat buffer vs queries in any buffer), may I ask how you use or would like to use gptel?
Of the two ways of using gptel (in a dedicated chat buffer vs queries in any buffer), may I ask how you use or would like to use gptel?
Both. They have their own advantages and disadvantages. Therefore, I am seeking a unified shortcut key convention.
I see. Do you have a suggestion for a keybinding that works in both contexts?
<f2>
is already globally bound in Emacs, though.
Both. They have their own advantages and disadvantages. Therefore, I am seeking a unified shortcut key convention.
I've found that C-c C-RET
is unbound in most major modes I've tried, that could be a viable option for you too.
In any case, I'm not going to bind gptel-send
in the global map, so the user is free to choose whatever key they would like. When gptel-mode
is active (in text, markdown or org-mode buffers) C-c RET
takes precedence and is simpler than C-c C-RET
, so I'm going to stick with that.
I'm closing this issue now, feel free to reopen if you think of a better keybinding.
I'm using auctex, which has bound the following short key, conflicted with the suggested one used by this package:
Considering that auctex is a very popular tool with a long history, I don't want to change its default key binding convention. So, I ask you for an alternative key binding convention in your package.
Regards, Zhao