Article View: comp.emacs
Article #3522changing the printer that lpr-region sends to
From: Edward J. Hartnett
Date: Thu, 21 Jan 1993 15:17
Date: Thu, 21 Jan 1993 15:17
32 lines
1596 bytes
1596 bytes
I hope this isn't too stupid a question, but I just added a printer to
my Sun ( a thinkjet) and I still have my old connection to the laser
printer over the network, which is where something will be sent if I
use the lpr command. To print on my thinkjet I need to use the command
lpr -Ptj FILE.
What I would like to do is change the way the lpr-buffer prints to
send it to the thinkjet.
From the info section:
All the hardcopy commands pass extra switches to the `lpr' program
based on the value of the variable `lpr-switches'. Its value should
be a list of strings, each string a switch starting with `-'. For
example, the value could be `("-Pfoo")' to print on printer `foo'.
So I tried to add the following line to my .emacs:
(setq lpr-switches ("-Ptj"))
I also tried:
(setq lpr-switches `("-Ptj")') -- this is what the info file says
(setq lpr-switches `("-Ptj")) -- this seemd to make sense to me
But none of these worked. Can anyone tell me how to set this string?
Also how would I add the -h option so it doesn't print a banner page?
Thanks.
--
Don't blame me, I voted against Amendment 2!
Edward Hartnett ejh@khonshu.colorado.edu
Technical Details
Message-ID:
<EJH.93Jan21151724@khonshu.colorado.edu>Path:
arc1-ca.pugleaf.net!sparky!uunet!boulder!colorado.edu!ejhShow Full Headers
Complete Article Headers
Newsgroups: comp.emacs Path: arc1-ca.pugleaf.net!sparky!uunet!boulder!colorado.edu!ejh From: ejh@khonshu.colorado.edu (Edward J. Hartnett) Subject: changing the printer that lpr-region sends to Message-ID: <EJH.93Jan21151724@khonshu.colorado.edu> Sender: news@colorado.edu (The Daily Planet) Nntp-Posting-Host: khonshu.colorado.edu Organization: CIRES, University of Colorado Date: 21 Jan 93 15:17:24 Lines: 33