In the magit-log-edit-mode, unbind the "C-x C-s" key combination. This
is useful to users who occassionally invoke 'git commit' from
command-line and therefore get into the habit of saving the buffer in
which they type out their commit message.

Signed-off-by: Ramkumar Ramachandra <[email protected]>
---
 magit.el |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/magit.el b/magit.el
index eb0748c..b2cf329 100644
--- a/magit.el
+++ b/magit.el
@@ -3124,6 +3124,7 @@ typing and automatically refreshes the status buffer."
     (define-key map (kbd "M-n") 'log-edit-next-comment)
     (define-key map (kbd "C-c C-k") 'magit-log-edit-cancel-log-message)
     (define-key map (kbd "C-c C-]") 'magit-log-edit-cancel-log-message)
+    (define-key map (kbd "C-x C-s") 'ignore)
     map))
 
 (defvar magit-pre-log-edit-window-configuration nil)
-- 
1.7.2.2.409.gdbb11.dirty

Reply via email to