home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / emacs / 4042 < prev    next >
Encoding:
Text File  |  1993-01-21  |  1.5 KB  |  45 lines

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!boulder!colorado.edu!ejh
  3. From: ejh@khonshu.colorado.edu (Edward J. Hartnett)
  4. Subject: changing the printer that lpr-region sends to
  5. Message-ID: <EJH.93Jan21151724@khonshu.colorado.edu>
  6. Sender: news@colorado.edu (The Daily Planet)
  7. Nntp-Posting-Host: khonshu.colorado.edu
  8. Organization: CIRES, University of Colorado
  9. Date: 21 Jan 93 15:17:24
  10. Lines: 33
  11.  
  12.  
  13. I hope this isn't too stupid a question, but I just added a printer to
  14. my Sun ( a thinkjet) and I still have my old connection to the laser
  15. printer over the network, which is where something will be sent if I
  16. use the lpr command. To print on my thinkjet I need to use the command
  17. lpr -Ptj FILE.
  18.  
  19. What I would like to do is change the way the lpr-buffer prints to
  20. send it to the thinkjet.
  21.  
  22. From the info section:
  23.    All the hardcopy commands pass extra switches to the `lpr' program
  24. based on the value of the variable `lpr-switches'.  Its value should
  25. be a list of strings, each string a switch starting with `-'.  For
  26. example, the value could be `("-Pfoo")' to print on printer `foo'.
  27.  
  28. So I tried to add the following line to my .emacs:
  29. (setq lpr-switches ("-Ptj"))
  30.  
  31. I also tried:
  32. (setq lpr-switches `("-Ptj")')   -- this is what the info file says
  33. (setq lpr-switches `("-Ptj"))    -- this seemd to make sense to me
  34.  
  35.  
  36. But none of these worked. Can anyone tell me how to set this string?
  37. Also how would I add the -h option so it doesn't print a banner page?
  38.  
  39. Thanks.
  40. --
  41.     Don't blame me, I voted against Amendment 2!
  42.  
  43. Edward Hartnett                ejh@khonshu.colorado.edu
  44.  
  45.