unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Printing questions concerning lpr-switches and printer-name
@ 2013-05-22 19:21 Marius Hofert
  2013-05-22 20:04 ` Peter Dyballa
  0 siblings, 1 reply; 6+ messages in thread
From: Marius Hofert @ 2013-05-22 19:21 UTC (permalink / raw)
  To: help-gnu-emacs

Hi,

I have the following settings for printing on 'P' from dired-mode:

(setq printer-name "myPrinter")
(setq lpr-switches '("-o sides=one-sided -o number-up=2"))

If I hit 'P' on a file foo.pdf in dired-mode, I get

Print foo.pdf with: lpr -o sides=one-sided -o number-up=2

According to the manual, the printer is then added via -P.

1) How can I adjust the printer if I want to print foo.pdf
on a different printer (I use about 3 different printers)?

I am wondering if it wouldn't be better to specify "-P myPrinter" as
part of lpr-switches so that I can at least adjust it manually when
receiving the message:

Print foo.pdf with: lpr -o sides=one-sided -o number-up=2 -P myPrinter

This is also not so convenient of course (and that's the reason why I'm
asking... is there a better approach?)

2) I would like to print files of certain types (like .c, .R) by 'a2ps'
instead of 'lpr'. How can this be dealt with (or is again the best
solution to adjust the print command manually [in this case completely
replace it]?).

My current work around is to use '!' with a predefined printing command
for such files (not very elegant, though).


Cheers,

Marius




^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-05-23 16:14 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-05-22 19:21 Printing questions concerning lpr-switches and printer-name Marius Hofert
2013-05-22 20:04 ` Peter Dyballa
2013-05-22 21:11   ` Marius Hofert
2013-05-22 22:52     ` Peter Dyballa
2013-05-23 14:53       ` Marius Hofert
2013-05-23 16:14         ` Peter Dyballa

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).