emacs-devel
[Top][All Lists]
Advanced

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

Re: A more modest proposal (Was: Emacs learning curve)


From: Jan Djärv
Subject: Re: A more modest proposal (Was: Emacs learning curve)
Date: Fri, 23 Jul 2010 09:20:16 +0200
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.6; sv-SE; rv:1.9.2.7) Gecko/20100713 Thunderbird/3.1.1



Daniel Colascione skrev 2010-07-23 08.18:

3) Natural binding for C-z

Bind C-z by default to this function:

(defun undo-or-suspend-emacs ()
   "Undo if we're in a windowing system, or suspend emacs if we're in a TTY"
   (interactive)
   (setq this-command (if window-system 'undo 'suspend-emacs))
   (call-interactively this-command))


Adopting this binding will ensure Emacs has the most natural and common
behavior on C-z for a given environment. Besides, not much of value is
lost: why bother with C-z in a windowing system when the system probably
provides its own idiomatic way of minimizing a window?

There may not be a keyboard command for minimizing the window. C-z is so much faster than reaching for the mouse when you are typing.

        Jan D.




reply via email to

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