|
Home > Archive > Unix questions > April 2004 > How to exit Emacs??
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to exit Emacs??
|
|
|
| Hi,
i'm using Emacs with Cygwin under Win2000. Everything works fine but i
can't exit Emacs with C-x C-c. When i type C-x C-c nthg happens. I
need allways to type C-x C-z and than i kill emacs from the shell.
any suggestion???
thx in advance
| |
| Bill Marcum 2004-04-03, 2:34 pm |
| On 3 Apr 2004 00:35:47 -0800, roinu
<armoni_r@yahoo.com> wrote:
> Hi,
>
> i'm using Emacs with Cygwin under Win2000. Everything works fine but i
> can't exit Emacs with C-x C-c. When i type C-x C-c nthg happens. I
> need allways to type C-x C-z and than i kill emacs from the shell.
>
> any suggestion???
>
comp.editors.emacs
Perhaps C-x C-c has been redefined. Try C-h w save-buffers-kill-emacs.
--
Nothing is illegal if one hundred businessmen decide to do it.
-- Andrew Young
| |
| Chris F.A. Johnson 2004-04-03, 4:37 pm |
| On Sat, 03 Apr 2004 at 08:35 GMT, roinu wrote:
> Hi,
>
> i'm using Emacs with Cygwin under Win2000. Everything works fine but i
> can't exit Emacs with C-x C-c. When i type C-x C-c nthg happens. I
> need allways to type C-x C-z and than i kill emacs from the shell.
>
> any suggestion???
M-x save-buffers-kill-emacs
Put this in your .emacs file:
(global-set-key "\C-x\C-c" 'save-buffers-kill-emacs)
--
Chris F.A. Johnson http://cfaj.freeshell.org/shell
========================================
===========================
My code (if any) in this post is copyright 2004, Chris F.A. Johnson
and may be copied under the terms of the GNU General Public License
| |
| David Rogoff 2004-04-05, 7:34 am |
| "Chris F.A. Johnson" <c.fa.johnson@rogers.com> writes:
> On Sat, 03 Apr 2004 at 08:35 GMT, roinu wrote:
>
> M-x save-buffers-kill-emacs
>
> Put this in your .emacs file:
>
> (global-set-key "\C-x\C-c" 'save-buffers-kill-emacs)
I found this on the 'net years ago:
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;; check before killing emacs
(defun my-exit-from-emacs ()
(interactive)
(if (yes-or-no-p "Do you want to exit ")
(save-buffers-kill-emacs)))
(global-set-key "\C-x\C-c" 'my-exit-from-emacs)
It's similar, but it prompts to see if you really want to exit. This
is very handy if you have tons of windows/frames/buffers open and
don't want them all to go poof when you accidentally hit c-x,c-c !
David
| |
| Randal L. Schwartz 2004-04-05, 9:36 am |
| *** post for FREE via your newsreader at post.newsfeed.com ***
You mean people *exit* Emacs? Why?
Just another person who types "screen emacs" about once a month... 
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment PERL training!
-----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----
| |
| Pravin 2004-04-11, 3:30 pm |
| Hi Bill,
I have faced same problem.. you may try our old windows trick handling
menus so fast that they appearer as keys... when i exit out of notepad i
type
alt f x
why not for emacs?
try
F10 f e
type it so fast that C-x C-x will appear slow!
-Pravin
Northeastern Univ CCS
Bill Marcum wrote:
> On 3 Apr 2004 00:35:47 -0800, roinu
> <armoni_r@yahoo.com> wrote:
>
>
> comp.editors.emacs
> Perhaps C-x C-c has been redefined. Try C-h w save-buffers-kill-emacs.X
>
>
|
|
|
|
|