C-c C-c WORKS!

2000-05-17 Thread Jonathan Pennington

 In Mutt, set your editor to emacsclient:
 set editor="emacsclient"  # editor to use when composing messages
 and use C-x # to exit. You can do other tricks by building an elisp

Funny, I actually did the opposite. For some reason, if my .emacs says
start server, then C-c C-c breaks in Mutt. Since I have a fast system,
I don't use emacsclient, so I took (server-start) out of .emacs and it
works.

Something for the archive at least.

-J
-- 
Jonathan Pennington | A computer without Windows
[EMAIL PROTECTED] |   is like a dog without 
http://www.coastalgeology.org   |  bricks tied to its head.



Re: C-c C-c

2000-05-15 Thread Chris Green

On Sat, May 13, 2000 at 11:36:38PM +0200, Stephane Payrard wrote:
 On Sat, May 13, 2000 at 06:23:58AM -0600, Charles Curley wrote:
  On Fri, May 12, 2000 at 11:32:57PM -0400, Jonathan Pennington wrote:
  - Again with the lost configs. I used to just type that sequence after
  - writing an email and emacs would save and exit, automagically
  - releasing control to Mutt. Unfortunately, now I have to explicitily
  - exit before continuing. Does anyone know what I want to adjust to
  - make the sequence C-c C-c (or any sequence for that matter) do this
  - automagically again? I know that this is really a .emacs question, but
  - I thought it was in post.el, so it's a Mutt specific .emacs question
  - :-)
  
  Rather than firing up Emacs and exiting it every time you want to use it,
  fire up Emacs once per login and shut it down when you log out. It means
  access to files is much faster.
  
  In Mutt, set your editor to emacsclient:
  
  set editor="emacsclient"# editor to use when composing messages
 
 You can also set the VISUAL or EDITOR variable that buy you the same
 feature (popping a emacs buffer to edit stuff) for many tools at once.
 
  
  and use C-x # to exit. You can do other tricks by building an elisp
  function which would call "server-exit", the function C-X # calls. For
  example, one of these days I will get around to writing a function like
 
 you also need the following line in ~/.emacs to enable the server part
 at emacs startup:
 
 (gnuserv-start)
 
For vi lovers this can all be done in a similar way with xvile, I use
it all the time, the equivalent to 'emacslient' is 'vileget'.  It's
slightly cleverer than the above in fact, if vileget can't find a
running xvile it starts one up for you.

[x]vile is my vi clone of choice, it's actually based on an emacs
engine, has most of the goodies that emacs gives you but is close
enough to 'real' vi to present no problems when moving from vi to
xvile and back.  It also has perl scripting built into it if you want.

-- 
Chris Green ([EMAIL PROTECTED])
  Home: [EMAIL PROTECTED]   Work: [EMAIL PROTECTED]
  WWW: http://www.isbd.co.uk/



Re: C-c C-c

2000-05-13 Thread Stephane Payrard

On Sat, May 13, 2000 at 06:23:58AM -0600, Charles Curley wrote:
 On Fri, May 12, 2000 at 11:32:57PM -0400, Jonathan Pennington wrote:
 - Again with the lost configs. I used to just type that sequence after
 - writing an email and emacs would save and exit, automagically
 - releasing control to Mutt. Unfortunately, now I have to explicitily
 - exit before continuing. Does anyone know what I want to adjust to
 - make the sequence C-c C-c (or any sequence for that matter) do this
 - automagically again? I know that this is really a .emacs question, but
 - I thought it was in post.el, so it's a Mutt specific .emacs question
 - :-)
 
 Rather than firing up Emacs and exiting it every time you want to use it,
 fire up Emacs once per login and shut it down when you log out. It means
 access to files is much faster.
 
 In Mutt, set your editor to emacsclient:
 
 set editor="emacsclient"  # editor to use when composing messages

You can also set the VISUAL or EDITOR variable that buy you the same
feature (popping a emacs buffer to edit stuff) for many tools at once.

 
 and use C-x # to exit. You can do other tricks by building an elisp
 function which would call "server-exit", the function C-X # calls. For
 example, one of these days I will get around to writing a function like

you also need the following line in ~/.emacs to enable the server part
at emacs startup:

(gnuserv-start)



-- 
  Stéphane Payrard
   email   : [EMAIL PROTECTED]
   portable: 06 60 95 82 69
  



Re: C-c C-c

2000-05-13 Thread Charles Curley

On Fri, May 12, 2000 at 11:32:57PM -0400, Jonathan Pennington wrote:
- Again with the lost configs. I used to just type that sequence after
- writing an email and emacs would save and exit, automagically
- releasing control to Mutt. Unfortunately, now I have to explicitily
- exit before continuing. Does anyone know what I want to adjust to
- make the sequence C-c C-c (or any sequence for that matter) do this
- automagically again? I know that this is really a .emacs question, but
- I thought it was in post.el, so it's a Mutt specific .emacs question
- :-)

Rather than firing up Emacs and exiting it every time you want to use it,
fire up Emacs once per login and shut it down when you log out. It means
access to files is much faster.

In Mutt, set your editor to emacsclient:

set editor="emacsclient"# editor to use when composing messages

and use C-x # to exit. You can do other tricks by building an elisp
function which would call "server-exit", the function C-X # calls. For
example, one of these days I will get around to writing a function like
that which calls spook:


supercomputer domestic disruption Uzi Ft. Meade World Trade Center Legion
of Doom DES Qaddafi NORAD fissionable SDI nuclear kibo munitions CIA


-- 

-- C^2

No windows were crashed in the making of this email.

Looking for fine software and/or web pages?
http://w3.trib.com/~ccurley



Re: C-c C-c

2000-05-13 Thread Holger Lillqvist

On May 12, Jonathan Pennington wrote:
 Again with the lost configs. I used to just type that sequence after
 writing an email and emacs would save and exit, automagically
 releasing control to Mutt. Unfortunately, now I have to explicitily
 exit before continuing. Does anyone know what I want to adjust to
 make the sequence C-c C-c (or any sequence for that matter) do this
 automagically again? 

To skip the prompt you might use something like this:

(defun exit-save-all-yes ()
  "Exit emacs and save all buffers without prompting"
  (interactive)
  (save-buffers-kill-emacs t))
(global-set-key "\C-c\C-c" 'exit-save-all-yes)

-- 
Holger [EMAIL PROTECTED]



Re: C-c C-c

2000-05-13 Thread Jonathan Pennington

* Charles Curley [EMAIL PROTECTED] [000513 16:15]:
 Rather than firing up Emacs and exiting it every time you want to use it,
 fire up Emacs once per login and shut it down when you log out. It means
 access to files is much faster.

I don't log out. Server is up 24/7. Problem is that I don't
want to have to worry about an emacs session being open to run the
client. I do many things at once, and if I accidently close emacs, I
have to restart it to get my email. Dual Pentium II processors with
3 128M ram sticks on a SCSI system. Two iterations of SetiAtHome
(1/CPU), Lyx, Netscape (memory hog) and multiple small stuff running
on one of 3 screens, Emacs starts with no noticable delay even if an
Emacs window *is* open. There's a small delay if Blender or GRASS is
running on a screen. Faster? That's not my problem. No simple laziness
is my problem. It's just too difficult for me to type three control
sequences when I can type two :-) My hands are used to two, and I
don't want to change... Unless, of course, I can type just one :-) 

What did Larry Wahl say about laziness? Unfortunately, I don't know
lisp.

-J



C-c C-c

2000-05-12 Thread Jonathan Pennington

Again with the lost configs. I used to just type that sequence after
writing an email and emacs would save and exit, automagically
releasing control to Mutt. Unfortunately, now I have to explicitily
exit before continuing. Does anyone know what I want to adjust to
make the sequence C-c C-c (or any sequence for that matter) do this
automagically again? I know that this is really a .emacs question, but
I thought it was in post.el, so it's a Mutt specific .emacs question
:-)

-J