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 09:28:26 +0200
User-agent: Notmuch/0.31.1+1~gc5504cb (https://notmuchmail.org) Emacs/27.1.91 (x86_64-pc-linux-gnu)

* 2021-02-04 17:46:19+0100, Lars Ingebrigtsen wrote:

> Gregory Heytings <gregory@heytings.org> writes:
>> C-x g c = clone-buffer
>> C-x g d = diff-buffers
>> C-x g f = fit-frame-to-buffer
>> C-x g h = hexl-mode
>> C-x g i = insert-buffer
>> C-x g l = font-lock-mode
>> C-x g n = rename-buffer
>> C-x g r = revert-buffer
>> C-x g R = revert-buffer-with-fine-grain
>> C-x g t = toggle-truncate-lines
>
> Of the alternative key bindings proposed, I like this the best. I'd
> prefer `C-x g g' for revert-buffer, though -- it's more in like with
> the `g' binding in `special-mode-map', and `revert-buffer' is a
> command you're likely to want to execute a number of times (in some
> cases), while the rest of these are less keyboard-mashey.

I like the idea of buffer key bindings behind some new "C-x
<new_letter>" map. This inspired me to add some of those to my systems
(also a binding for "hl-line-mode") and I think they are useful for many
people. My current list would be:

    C-x g c = clone-buffer
    C-x g d = diff-buffers
    C-x g h = hl-line-mode
    C-x g i = insert-buffer
    C-x g n = rename-buffer
    C-x g r = revert-buffer
    C-x g t = toggle-truncate-lines

(My system doesn't seem to have "revert-buffer-with-fine-grain".)

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".

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



reply via email to

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