The Emacs manual says:
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.
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.[...]
To specify the printer to use, set the variable
printer-name
. The default,nil
, specifies the default printer.
How do we specify the printer to use?
For example, a PDF printer, which is not shown in the output of
lpstat -p -d
Thanks.
cups-pdf
package, then follow the instructions here: wiki.archlinux.org/index.php/CUPS#PDF_virtual_printer (there isn't much to do, but be warned it is very likely that your user isn't allowed to print anything at all... CUPS is a fundamentally user-ugly system. So, you would need to log in as root (or find a way to make your user eligible for printer management, and no, it is not enough to be a sudoer). Then you can print just as you intended to. But (as I commented on your other question), PS and thenps2pdf
will look nicer.