I understand that in magit the normal way to commit after editing the commit message buffer would be C-c C-c
However in using git from the command line --- with Emacs as the editor for commit messages --- I have gotten used to the keystroke combination for saving the commit message C-x C-s
and then killing the buffer C-x k Enter
. Is there a way I could continue to do this using magit? In the default magit configuration, the normal keystrokes that I use for killing the buffer are aborting the commit.
C-x C-s
for saving but there are various ways to kill a buffer.C-c C-c
an unfamiliar way to take action, but I would firmly recommend that you simply take time to learn that, becauseC-c C-c
is a very common way to take action in Emacs, and crops up in a multitude of libraries. I count more than 80 instances of the binding in core Emacs alone, without even looking at ELPA packages. This is highly unlikely to be the only time you encounter it.