Article View: news.software.readers
Article #177029Re: SLRN questions + emacs
From: Neil Woods
Date: Fri, 02 Dec 2005 20:42
Date: Fri, 02 Dec 2005 20:42
52 lines
2596 bytes
2596 bytes
>>>>> 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.
--
Neil.
The happiest time of a person's life is after his first divorce.
-- J.K. Galbraith
Technical Details
Message-ID:
<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!centaur.lucky.net!fr.ip.ndsoftware.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mailReferences:
<3v8a6mF14arvlU1@uni-berlin.de> <3vadviF14gia4U1@uni-berlin.de> <87psofh7se.fsf@phun.phasmic.org> <3vb8dnF14p7bqU1@uni-berlin.de>Show Full Headers
Complete Article Headers
Message-ID: <87k6engrhy.fsf@phun.phasmic.org> Subject: Re: SLRN questions + emacs Date: Fri, 02 Dec 2005 20:42:49 +0000 From: Neil Woods <cnw+usenet@pobox.com> References: <3v8a6mF14arvlU1@uni-berlin.de> <3vadviF14gia4U1@uni-berlin.de> <87psofh7se.fsf@phun.phasmic.org> <3vb8dnF14p7bqU1@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!centaur.lucky.net!fr.ip.ndsoftware.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail Newsgroups: news.software.readers Lines: 52 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: individual.net CABIiowve5SD6coeoQXe0AcO1Mf+6S5RvtjxD7h+36GwNs3arN X-Endless-September-Date: Fri Sep 4476 20:30:01 GMT 1993 X-Emacs-Uptime: 0d 9h 18m 23s Mail-Copies-To: nobody User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.0.50 (gnu/linux) Cancel-Lock: sha1:SHoLWVRfDPehJI1XB8dXd6RDIGw=