emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Concern about new binding.


From: Teemu Likonen
Subject: Re: Concern about new binding.
Date: Sat, 06 Feb 2021 11:59:53 +0200
User-agent: Notmuch/0.31.1+1~gc5504cb (https://notmuchmail.org) Emacs/27.1.91 (x86_64-pc-linux-gnu)

* 2021-02-06 09:40:03+0000, Gregory Heytings wrote:

>> It would have been nicer if Magit documentation would have only 
>> suggested user to bind "C-c g" (not "C-x g") key for "magit-status".

> The Magit documentation does suggest to use "C-c g", but for
> "magit-file-dispatch", instead of "C-c M-g".

Yes, but I meant to say that key bindings are not only suggestions in
the documentation: the "C-x g" key is automatically bound to
magit-status command. It would be nicer if Magit didn't automatically
bind anything to "reserved" keymaps.

Technically global minor mode global-magit-file-mode is on by default
and it enables minor mode magit-file-mode in every Git buffer. That
minor mode binds "C-x g" and couple of others automatically.

So, user has to manually disable that, either by disabling
global-magit-file-mode (with customize, for example) or by redefining
magit-file-mode-map:

    (defvar magit-file-mode-map)
    (setq magit-file-mode-map (make-sparse-keymap))

-- 
/// Teemu Likonen - .-.. https://www.iki.fi/tlikonen/
// OpenPGP: 4E1055DC84E9DFF613D78557719D69D324539450

Attachment: signature.asc
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]