Thierry Volpiatto
<
thierry....@gmail.com> writes:
> Julien Cubizolles <
j.cubi...@free.fr> writes:
>
>> When printing from helm, the default command line is
>> lpr name_of_the_printer
>> instead of
>> lpr -Pname_of_the_printer
>
> You have to setup yourself the command line, see the documentation of
> helm-ff-print.
I have the following set:
(setq printer-name "laserjet")
(setq lpr-command "lpr")
(setq lpr-switches '("-o landscape -o fit-to-page -o sides=two-sided-short-edge -o page-ranges=1-"))
With the previous, dired (according to the lpr-switched docstring
"It is recommended to set `printer-name' instead of including an
explicit switch on this list.") uses
lpr -Plaserjet -o landscape -o fit-to-page -o sides=two-sided-short-edge -o page-ranges=1-"
whereas helm, after prompting for the name of the printer to use, uses
lpr -o landscape -o fit-to-page -o sides=two-sided-short-edge -o page-ranges=1- HP-LaserJet-P2055d-2
missing the -P switch. Of course one can unset printername, and add a -P
switch to have a setup working both from within dired or helm but I'm
not sure that's the best choice.
Julien.