🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #177095

Re: SLRN questions + emacs

#177095
From: Walter Mitty
Date: Sun, 04 Dec 2005 16:44
71 lines
3122 bytes
Neil Woods wrote:
>>>>>>Walter Mitty writes:
> 
> 
>>Neil Woods wrote:
>>
>>>You need to tell emacs that you want auto-fill turned on when
>>>editing
>>>buffers spawned by slrn.  Probably the simplest way in this instance is
>>>to add the lisp function invocation to the above line, so it becomes
>>>set editor_command "emacs -f turn-on-auto-fill  +%d '%s'"
> 
> 
>>I had tried this : it does not work. I'm stumped as to why. The line
>>is begin recognised since the %d is doing its job : but lines are not
>>wrapping.
> 
> 
>>I really dont want wrap mode as a default for all files so dont want
>>to add the text hook in my .emacs.
> 
> 
>>I guess I have to either somehow pass the hook option in the command
>>line or have slrn start emacs using a special init file where its
>>done.
> 
> 
>>from the manual I expected "-f auto-fill-mode" on the command line to
>>work but it didnt.
> 
> 
> Yes, that's strange.
> 
> However, you can add this to your ~/.emacs
> 
> (defun my-slrn-mode ()
>   (text-mode)
>   ;; 
>   ;; Add here any more functions, etc. you want
>   ;;
>   (auto-fill-mode 1))
> 
> (setq auto-mode-alist
>       (append '(("\\.article"  . my-slrn-mode)
> 		("\\.followup" . my-slrn-mode)
> 		)
> 	      auto-mode-alist))
> 
> I'm assuming the names of the files above are correct. If not, it's easy
> to change them.
> 
> Then add this to your ~/.slrnrc
> 
> set editor_command "emacs  +%d '%s'"
> 
> Cheers.


Perfect! Mayn, many thanks. No idea why the simple -f optin didnt work. 
While you're there, any idea to :

a) Have a default .slnrc
b) oa per newsgroup modifier for different reply templates etc



-- 
Science? Is there nothing it can't teach us?
     http://news.bbc.co.uk/1/hi/england/4487010.stm
Are you ready for this?  "Children who live or go to school near fast
food restaurants are more likely to eat there, a consumer report said."
Technical Details
Message-ID: <3vgkoaF15m336U1@uni-berlin.de>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!not-for-mail
References: <3v8a6mF14arvlU1@uni-berlin.de> <3vadviF14gia4U1@uni-berlin.de> <87psofh7se.fsf@phun.phasmic.org> <3vb8dnF14p7bqU1@uni-berlin.de> <87k6engrhy.fsf@phun.phasmic.org>

Show Full Headers
Complete Article Headers
Message-ID: <3vgkoaF15m336U1@uni-berlin.de>
Subject: Re: SLRN questions + emacs
Date: Sun, 04 Dec 2005 17:44:57 +0100
From: Walter Mitty <mitticus@gmail.com>
References: <3v8a6mF14arvlU1@uni-berlin.de> <3vadviF14gia4U1@uni-berlin.de> <87psofh7se.fsf@phun.phasmic.org> <3vb8dnF14p7bqU1@uni-berlin.de> <87k6engrhy.fsf@phun.phasmic.org>
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.readers.20140922.mbox.gz!number1.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!nx01.iad01.newshosting.com!newshosting.com!newsfeed.icl.net!newsfeed.fjserv.net!newsfeed.freenet.de!newsfeed.stueberl.de!fu-berlin.de!uni-berlin.de!not-for-mail
Newsgroups: news.software.readers
Lines: 71
Mime-Version: 1.0
Content-Type: text/plain; charset=ISO-8859-1; format=flowed
Content-Transfer-Encoding: 7bit
X-Trace: news.uni-berlin.de xlMu3XgrzBKt8o2JwrS0nwJWqfXJCGvW7ETh+vOcWDDA==
User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013)
X-Accept-Language: en-us, en
In-Reply-To: <87k6engrhy.fsf@phun.phasmic.org>