Is it possible to get beautiful prints in GNU Emacs? By default using M-x print-buffer the output looks ugly, with big fonts and no margin.

For source code it would be nice to get a pretty font, syntax highlighting, a header and line numbering.

4 Answers 4


I would suggest using M-x ps-print-buffer-with-faces, it looks much nicer.

  • 3
    This is what I usually do from emacs, but enscript provided tons of flexibility if you find this to be deficient in some way. Commented Sep 25, 2009 at 15:14

Download a2ps; it does what you're looking for.

enter image description here


You might find this page about printing on the Emacs Wiki helpful.

The two most interesting options on there are:

I have to admit I haven't tried either.



Similar in spirit to a2ps. My link is to the GNU version, but I think that Adobe provided the original.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .