Next: , Previous: , Up: Miscellaneous  


Q5.3.4: Getting M-x lpr to work with postscript printer.

My printer is a Postscript printer and lpr only works for Postscript files, so how do I get M-x lpr-region and M-x lpr-buffer to work?

Put something like this in your init.el:

(setq lpr-command "a2ps")
(setq lpr-switches '("-p" "-1"))

If you don’t use a2ps to convert ASCII to postscript (why not, it’s free?), replace with the command you do use. Note also that some versions of a2ps require a ‘-Pprinter’ to ensure spooling.