From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Maarten Bergvelt Newsgroups: gmane.emacs.help Subject: Re: slrn and emacsclient Date: Thu, 1 Feb 2007 17:04:34 +0000 (UTC) Organization: Department of Mathematics, UIUC. Message-ID: References: Reply-To: bergv@uiuc.edu NNTP-Posting-Host: lo.gmane.org X-Trace: sea.gmane.org 1170351638 5749 80.91.229.12 (1 Feb 2007 17:40:38 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 1 Feb 2007 17:40:38 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 01 18:40:31 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HCfvC-0002D0-Vl for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Feb 2007 18:40:31 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HCfvC-0005Zk-IK for geh-help-gnu-emacs@m.gmane.org; Thu, 01 Feb 2007 12:40:30 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!headwall.stanford.edu!newshub.sdsu.edu!news.ks.uiuc.edu!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 49 Original-NNTP-Posting-Host: bolmikolke.math.uiuc.edu Original-X-Trace: news.ks.uiuc.edu 1170349474 2107 130.126.108.244 (1 Feb 2007 17:04:34 GMT) Original-X-Complaints-To: news+abuse@ks.uiuc.edu Original-NNTP-Posting-Date: Thu, 1 Feb 2007 17:04:34 +0000 (UTC) User-Agent: slrn/0.9.7.4 (Linux) Original-Xref: shelby.stanford.edu gnu.emacs.help:145219 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:40825 Archived-At: In article , 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