|
From: | 조성빈 |
Subject: | Re: Quit help for someone new to Emacs |
Date: | Fri, 20 Dec 2019 01:54:03 +0900 |
Zhu Zihao <address@hidden> 작성:
Well, it's not a joke. I found Vim will give a hint for new user how can theyreally quit Vim when they try to press "C-c".I know there's detailed message in splash screen describes that how to quit. Butif a new user use Emacs to open a file directly(e.g. run "emacs .bashrc" in bash). They can't see this useful message. For Emacs, "C-c" is preserved for user bindings. So it's always empty for a Emacs without any user configuration. IMO, it maybe useful to pop a message"Press 'C-x C-c' ('C-' means Ctrl-) to quit Emacs" in echo area when someone hit"C-c" frequently.
Looks like the feature might only be activated when there is no .emacs or ~/.emacs.d directory. (I’m assuming that most new users that don’t know Emacs enough to not know (or search, learn) how to quit Emacs won’t have already configured Emacs.)
What about a ‘C-c C-c’ default binding that only gets activated when there is no init file?
And no doubt that this feature can be controlled via a Lisp variable.
In my proposal, that would just be binding C-c C-c to (message "Press 'C-x C-c' ('C-' means Ctrl-) to quit Emacs") (or some function that Emacs uses to display the message) so I’m not sure if there needs another variable.
What's your opinions?
Great idea, IMO.
— Zihao
[Prev in Thread] | Current Thread | [Next in Thread] |