These commands convert buffer contents to Postscript, either printing it or leaving it in another Emacs buffer.
The Postscript commands, ps-print-buffer
and
ps-print-region
, print buffer contents in Postscript form. One
command prints the entire buffer; the other, just the region. The
corresponding `-with-faces' commands,
ps-print-buffer-with-faces
and ps-print-region-with-faces
,
use Postscript features to show the faces (fonts and colors) in the text
properties of the text being printed.
If you are using a color display, you can print a buffer of program
code with color highlighting by turning on Font-Lock mode in that
buffer, and using ps-print-buffer-with-faces
.
All four of the commands above use the variables ps-lpr-command
and ps-lpr-switches
to specify how to print the output.
ps-lpr-command
specifies the command name to run, and
ps-lpr-switches
specifies command line options to use. If you
don't set these variables yourself, they take their initial values from
lpr-command
and lpr-switches
.
The variable ps-print-header
controls whether these commands
add header lines to each page--set it to nil
to turn headers
off. You can turn off color processing by setting
ps-print-color-p
to nil
. Many other customization
variables for these commands are defined and described in the Lisp file
`ps-print.el'.
The commands whose names have `spool' instead of `print' generate the Postscript output in an Emacs buffer instead of sending it to the printer.