Printing From EMACS

Q: How do you print a file out of emacs?

A: Well, this depends on your printer. Usually, you could just:

M-x print-buffer <RETURN>

If this does not work, you may have to add the following to your .emacs file:

(setq ps-printer-name "/PRN")

or even:

(setq ps-printer-name "C:/PRN")

Finally, if these do not work, you need to inform emacs just what kind of printer options you need. Do this with:

M-x customize-group <RETURN>
ps-print <RETURN>

Move the cursor around the customization buffer. As you enter some 'buttons' (between tags), you might see some highlighting. Select the button with an 'enter' or 'return' key press. When done, be sure to scroll to the top of the buffer to set the changes (and perhaps save them for future work, too.)