Post

29 Printing from Emacs

If you want to use the printer named lpt1 whenever you print from Emacs, you would want to set lpr-switches to -Plpt1. To do so, add the following line to your .emacs file:

1
(setq lpr-switches '("-Plpt1"))

Printing commands:

KeystrokesAction
M-x print-buffer File Print BufferPrint the buffer (similar to Unix **pr
M-x print-region File Print RegionPrint the region (similar to Unix **pr
M-x lpr-bufferPrint buffer with no page numbers (similar to Unixlpr).
M-x lpr-regionPrint region with no page numbers (similar to Unixlpr).
P Operate PrintFrom Dired, put the default print command in the minibuffer; you can change it or pressEnter to execute it.
M-x ps-print-buffer-with-faces File Postscript Print BufferPrint the buffer with text attributes.
M-x ps-print-region-with-faces File Postscript Print RegionPrint the region with text attributes.
This post is licensed under CC BY 4.0 by the author.