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

  1. Newsgroups: comp.emacs
  2. Path: sparky!uunet!panther!mothost!lmpsbbs!mcil.comm.mot.com!avishaiy
  3. From: avishaiy@mcil.comm.mot.com (Avishai Yacobi)
  4. Subject: Re: changing the printer that lpr-region sends to
  5. Organization: Motorola Communications Israel Ltd., Tel Aviv
  6. Date: Wed, 27 Jan 1993 07:17:25 GMT
  7. Message-ID: <1993Jan27.071725.11363@lmpsbbs.comm.mot.com>
  8. References:  <EJH.93Jan21151724@khonshu.colorado.edu>
  9. Sender: avishaiy@comm.mot.com (Avishai Yacobi)
  10. Nntp-Posting-Host: 145.9.71.3
  11. Lines: 42
  12.  
  13. In article <EJH.93Jan21151724@khonshu.colorado.edu>, ejh@khonshu.colorado.edu (Edward J. Hartnett) writes:
  14. |> 
  15. |> I hope this isn't too stupid a question, but I just added a printer to
  16. |> my Sun ( a thinkjet) and I still have my old connection to the laser
  17. |> printer over the network, which is where something will be sent if I
  18. |> use the lpr command. To print on my thinkjet I need to use the command
  19. |> lpr -Ptj FILE.
  20. |> 
  21. |> What I would like to do is change the way the lpr-buffer prints to
  22. |> send it to the thinkjet.
  23. |> 
  24. |> From the info section:
  25. |>    All the hardcopy commands pass extra switches to the `lpr' program
  26. |> based on the value of the variable `lpr-switches'.  Its value should
  27. |> be a list of strings, each string a switch starting with `-'.  For
  28. |> example, the value could be `("-Pfoo")' to print on printer `foo'.
  29. |> 
  30. |> So I tried to add the following line to my .emacs:
  31. |> (setq lpr-switches ("-Ptj"))
  32. |> 
  33. |> I also tried:
  34. |> (setq lpr-switches `("-Ptj")')   -- this is what the info file says
  35. |> (setq lpr-switches `("-Ptj"))    -- this seemd to make sense to me
  36. |> 
  37. |> 
  38. |> But none of these worked. Can anyone tell me how to set this string?
  39. |> Also how would I add the -h option so it doesn't print a banner page?
  40. |> 
  41. |> Thanks.
  42. |> --
  43. |>     Don't blame me, I voted against Amendment 2!
  44. |> 
  45. |> Edward Hartnett                ejh@khonshu.colorado.edu
  46. |> 
  47.  
  48. -- 
  49. Well, the last thing to try is:
  50. (setq lpr-switches '("-Ptj"))
  51. ----------------------
  52. __ _ _ _ __ ____  __ _
  53.  | | | |  |    |  | \/
  54.    |/_/     ___|_ |  \
  55.