unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: Maarten Bergvelt <bergv@math.uiuc.edu>
To: help-gnu-emacs@gnu.org
Subject: Re: slrn and emacsclient
Date: Thu, 1 Feb 2007 17:04:34 +0000 (UTC)	[thread overview]
Message-ID: <slrnes47d2.vi5.bergv@bolmikolke.math.uiuc.edu> (raw)
In-Reply-To: slrnes3ntg.9uu.tyler.smith@blackbart.mynetwork

In article <slrnes3ntg.9uu.tyler.smith@blackbart.mynetwork>, Tyler Smith wrote:
> I'm trying to get emacsclient set up as my editor for slrn. This
> arrangment works well for mutt, but it's a little rough with slrn as I
> have it configured.
> 
> Posting from slrn calls emacsclient, but not in mail mode. When I
> finish I have to save the message, kill the buffer, confirm kill the
> buffer even though it still has clients, switch to the slrn window,
> control-c to get past "waiting for Emacs", and then finally post the
> message.
> 
> With mutt I just C-x k the message and switch to the mutt window,
> which is waiting for me to send the message. How do I get the same
> functionality with slrn?
> 
> I know, I should probably be using gnus instead from inside emacs, but
> I couldn't quite get that working. Eventually I'll sort it out, but
> the mutt-like interface of slrn is familiar.
> 
> Oh, and here's the relevant part of my .emacs:
> 
> ;; mutt and mail stuff:
> (add-to-list 'auto-mode-alist '("/mutt" . mail-mode))
> (add-to-list 'auto-mode-alist '("/slrn" . mail-mode)) ;; just a guess!
> 
> (defun my-mail-mode-hook ()
>      (auto-fill-mode 1)
>      (abbrev-mode 1)
>      (local-set-key "\C-Xk" 'server-edit))
> (add-hook 'mail-mode-hook 'my-mail-mode-hook)

I do in my .slrnrc
set editor_command "emacs -nw '%s'"
and I don't have any customization in my .emacs. It just works for me,
after finishing the posting I type C-c C-c and it returns me to slrn,
to send it. 

Same for mutt:
 set editor="emacs -nw"
in .muttrc, no customization for mutt in .emacs. I don't need to switch to the
mutt window, emacs runs in the same terminal as mutt (or slrn).

I think it is distracting to need to move my attention from the
terminal window running slrn/mutt to the emacs window and back.  This
setup works also over ssh, which is very important for me.

hth.
-- 
Maarten Bergvelt		

  reply	other threads:[~2007-02-01 17:04 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-02-01 12:40 slrn and emacsclient Tyler Smith
2007-02-01 17:04 ` Maarten Bergvelt [this message]
2007-02-01 21:55   ` Tyler Smith
2007-02-01 22:09     ` Tyler Smith
2007-02-04 17:28     ` Kevin Rodgers
     [not found]     ` <mailman.4001.1170610117.2155.help-gnu-emacs@gnu.org>
2007-02-05  4:12       ` Tyler Smith
2007-02-05  9:59         ` Peter Dyballa
     [not found]         ` <mailman.4033.1170669629.2155.help-gnu-emacs@gnu.org>
2007-02-05 16:02           ` Tyler Smith
2007-02-05 17:57             ` Peter Dyballa
     [not found]             ` <mailman.4057.1170698276.2155.help-gnu-emacs@gnu.org>
2007-02-06  2:36               ` Tyler Smith
2007-02-01 17:28 ` Phil Jackson

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=slrnes47d2.vi5.bergv@bolmikolke.math.uiuc.edu \
    --to=bergv@math.uiuc.edu \
    --cc=bergv@uiuc.edu \
    --cc=help-gnu-emacs@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.
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).