🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.readers
Article #146778

Re: [slrn] quote rotations

#146778
From: pkd
Date: Tue, 20 Apr 2004 17:49
29 lines
2225 bytes
On Tue, 20 Apr 2004 07:15:25 GMT, The King of Pots and Pans wrote:

> I use emacs as my editor with slrn. Not sure if this is a slrn
> question or emacs questions. How do I go about specifying a file that
> has nothing but quotations of famous sayings in it so that a random
> one is picked and inserted into my .signature file for each message I
> write? 

post.el rocks! just put it into your emacs path and add these lines to
your `.emacs':

--8<---------------cut here---------------start------------->8---
(load-library "post")
(setq post-fixed-signature-source "/dev/null")
(setq post-random-signature-command "/usr/games/fortune -s all")
(add-hook 'post-mode-hook 'post-random-signature)
(add-hook 'post-mode-hook 'turn-on-font-lock)

(load-library "message")
(define-key post-mode-map "\M-\r" 'message-newline-and-reformat)
(define-key post-mode-map "\C-c\C-l" 'message-elide-region)
(define-key post-mode-map "\C-c\C-z" 'message-kill-to-signature)
(define-key post-mode-map "\C-c\C-v" 'message-delete-not-region)
--8<---------------cut here---------------end--------------->8---

-- 
We are not loved by our friends for what we are; rather, we are loved in
spite of what we are.
		-- Victor Hugo
Technical Details
Message-ID: <c63nr1$7ovh9$1@ID-219024.news.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.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!ppp-44-223.98-62.inwind.IT!not-for-mail
References: <h64hc.65264$U83.46688@fed1read03>

Show Full Headers
Complete Article Headers
Message-ID: <c63nr1$7ovh9$1@ID-219024.news.uni-berlin.de>
Subject: Re: [slrn] quote rotations
Date: Tue, 20 Apr 2004 17:49:22 +0000
From: pkd <p_u_n_k_i_n_d@yahoo.it>
References: <h64hc.65264$U83.46688@fed1read03>
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.ash.giganews.com!internal1.nntp.ash.giganews.com!border2.nntp.ash.giganews.com!nntp.giganews.com!newsfeed00.sul.t-online.de!t-online.de!newsfeed.freenet.de!news-feed1.de1.concert.net!fu-berlin.de!uni-berlin.de!ppp-44-223.98-62.inwind.IT!not-for-mail
Newsgroups: news.software.readers
Lines: 29
NNTP-Posting-Host: ppp-44-223.98-62.inwind.it (62.98.223.44)
X-Trace: news.uni-berlin.de 1082483362 8158761 I 62.98.223.44 ([219024])
X-Comment-To: King@ask.for.email.invalid
User-Agent: slrn/0.9.8.0 (Linux) Hamster-Pg/1.13