Emacs Server Top Postscript
The Emacs commands for making hardcopy let you print either an entire buffer or just part of one, either with or without page headers. See also the hardcopy commands of Dired (see Misc File Ops) and the diary (see Diary Commands).
Print hardcopy of current buffer with page headings containing the file name and page number.
|M-x lpr-buffer||Print hardcopy of current buffer without page headings.|
|M-x print-region||Like |
|M-x lpr-region||Like |
The hardcopy commands (aside from the Postscript commands) pass extra
switches to the
lpr program based on the value of the variable
lpr-switches. Its value should be a list of strings, each string
an option starting with `
-'. For example, to specify a line width
of 80 columns for all the printing you do in Emacs, set
lpr-switches like this:
(setq lpr-switches '("-w80"))
You can specify the printer to use by setting the variable
lpr-command specifies the name of the printer
program to run; the default value depends on your operating system type.
On most systems, the default is
"lpr". The variable
lpr-headers-switches similarly specifies the extra switches to
use to make page headers. The variable
whether to supply `
-T' and `
-J' options (suitable for
lpr) to the printer program:
nil means don't add them.
lpr-add-switches should be
nil if your printer program is
not compatible with