help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Proposal: "C-z <letter>" reserved for users


From: Howard Melman
Subject: Re: Proposal: "C-z <letter>" reserved for users
Date: Sun, 07 Feb 2021 21:06:30 -0500
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/27.1 (darwin)

S Boucher via Users list for the GNU Emacs text editor
<help-gnu-emacs@gnu.org> writes:

> C-z is bound to a low frequency use function (suspend-frame)... and
> speaking for myself, I probably can count on one hand the number of
> times I've used it in the last 25years :-)
>
> I would suggest:1) move suspend-frame to "C-c C-z" (that
> is still a quick shortcut) 2) reserve C-z <letter> for users
> That still leaves a whole lot with C-z C-... C-z M-...

FWIW I used to bind the ctl-x-5-map to C-z add was happier
typing C-z f than C-x 5 f.  I shifted to this frame oriented
transient on C-z for a while now and have been happy.  I'm
sure it could be improved but as a first attempt it's been
pretty good for me.

;;; frame commands from ctl-x-5-map
(define-transient-command hrm-frame-transient ()
  "Frame commands mirroring ctl-x-5-map"
  ["Configure Frames"
   ["Manage"
    ("2" "New" make-frame-command)
    ("0" "Delete" delete-frame)
    ("k" "Kill Frame & Buffer" kill-buffer-and-frame)
    ("1" "Delete others" delete-other-frames)
    ]
   ["Select"
    ("o" "Other" other-frame)
    ("n" "Next" other-frame)
    ("p" "Previous" select-previous-frame)
    ]
   ["Display"
    ("-" "Fixed Width" variable-pitch-mode)
    ("l" "Lower" lower-frame)
    ("=" "Maximize" toggle-frame-maximized)
    ("i" "Iconify" iconify-frame)
    ]
   ["Move"
    ("<" "Left" move-frame-left :transient t)
    (">" "Right" move-frame-right :transient t)
    ]
   ]
  ["Open in other Frame"
   ["Files"
    ("b" "Buffer" switch-to-buffer-other-frame)
    ("C-o" "Buffer other frame" display-buffer-other-frame)
    ("C-f" "File" find-file-other-frame)
    ("f" "File" find-file-other-frame)
    ("r" "File Read-Only" find-file-read-only-other-frame)
    ]
   ["Apps"
    ("d" "Dired" dired-other-frame)
    ("." "Xref" xref-find-definitions-other-frame)
    ("m" "Compose Mail" compose-mail-other-frame)
    ]
   ["Help For"
    ("V" "Variable" find-variable-other-frame)
    ("F" "Function" find-function-other-frame)
    ("K" "Key" find-function-on-key-other-frame)
    ("L" "Library" find-library-other-frame)
    ]
   ]
  )
(global-set-key (kbd "C-z") 'hrm-frame-transient)


-- 

Howard




reply via email to

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