unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
From: Unknown <unknown@unknown.invalid>
To: Zhu Zihao <all_but_last@163.com>
Cc: emacs-devel@gnu.org
Subject: Re: Quit help for someone new to Emacs
Date: Fri, 20 Dec 2019 01:54:03 +0900	[thread overview]
Message-ID: <08D8674D-3C77-48F4-921E-4E351B1AC692@icloud.com> (raw)
In-Reply-To: <871rt0l42h.wl-all_but_last@163.com>

Zhu Zihao <all_but_last@163.com> 작성:

>
> Well, it's not a joke. I found Vim will give a hint for new user how can  
> they
> really quit Vim when they try to press "C-c".
>
> I know there's detailed message in splash screen describes that how to  
> quit. But
> if 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





  reply	other threads:[~2019-12-19 16:54 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-12-19 15:37 Quit help for someone new to Emacs Zhu Zihao
2019-12-19 16:54 ` Unknown [this message]
2019-12-20  4:13   ` Zhu Zihao
2019-12-20  7:10     ` VanL
2019-12-19 18:34 ` Memnon Anon
2019-12-19 19:25 ` Mark H. David
2019-12-19 19:37   ` Eli Zaretskii
2019-12-19 19:54     ` Mark H. David

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=08D8674D-3C77-48F4-921E-4E351B1AC692@icloud.com \
    --to=unknown@unknown.invalid \
    --cc=all_but_last@163.com \
    --cc=emacs-devel@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).