Go to the first, previous, next, last section, table of contents.

Hardcopy Output

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 section Miscellaneous File Operations) and the diary (see section Commands Displaying Diary Entries).

M-x print-buffer
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. makes no page headings.
M-x print-region
Like print-buffer but print only the current region.
M-x lpr-region
Like lpr-buffer but print only the current region.

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 use a printer named `nearme', set lpr-switches like this:

(setq lpr-switches '("-Pnearme"))

The variable lpr-header-switches similarly specifies the extra switches to use to make page headers.


Go to the first, previous, next, last section, table of contents.