🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.emacs.help
Article #2256

Printing from emacs

#2256
From: Andrzej Bieszczad
Date: Wed, 29 Apr 1992 23:10
47 lines
1996 bytes
I spent some time trying to solve a printing problem, so I thought
that I will share the findings.

I wanted to use postscript formatters for my printouts from emacs.
----------------------------------------------------------------------

I have two scripts emacs-print and gnus-print.

emacs-print is used in my .emacs:

(setq lpr-command "~/emacs/lisp/emacs-print")

The content of the shell is:

#!/bin/sh
a2ps $! | lpr -Plp1

---------------------

When I want to print from gnus (a news reader within emacs), I call:

xemacs -l gnus-ini.el -f gnus


In gnusini.el I have (amongst others):
...
(setq lpr-command "~/emacs/lisp/gnus-print")
...


The content of the shell is:

#!/bin/sh
mp -n $! | lpr -Plp1

----------------------------------------------------------------------

I hope that you find it valuable.

--
========================================================================
Andrzej Bieszczad                     | Phone:  (613) 763-2259
Bell-Northern Research, Ltd.          | Fax:    (613) 763-3283
Dept. 9K12, P.O. Box 3511, Station C, | USENET: uunet!bnrgate!eh!andrzej
Ottawa, Ontario, Canada, K1Y 4H7      | BitNet: andrzej@BNR.CA
========================================================================
Technical Details
Message-ID: <ANDRZEJ.92Apr29181058@bcars268.bnr.ca>
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!news.utdallas.edu!corpgate!bnrgate!bcars267!bcars267!andrzej

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10b600,5cb038b6bd0beb86,start
X-Google-Attributes: gid10b600,public
X-Google-Thread: 103b8b,5cb038b6bd0beb86,start
X-Google-Attributes: gid103b8b,public
X-Google-ArrivalTime: 1992-04-29 16:10:58 PST
Path: arc1-ca.pugleaf.net!sparky!uunet!spool.mu.edu!wupost!news.utdallas.edu!corpgate!bnrgate!bcars267!bcars267!andrzej
From: andrzej@bnr.ca (Andrzej Bieszczad)
Newsgroups: gnu.emacs.help,bnr.general
Subject: Printing from emacs
Message-ID: <ANDRZEJ.92Apr29181058@bcars268.bnr.ca>
Date: 29 Apr 92 23:10:58 GMT
Article-I.D.: bcars268.ANDRZEJ.92Apr29181058
Sender: news@bnr.ca (usenet)
Organization: Bell-Northern Research Ltd.,
Lines: 47
Nntp-Posting-Host: bcars268