Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
up vote 9 down vote accepted

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

share|improve this answer
This is what I usually do from emacs, but enscript provided tons of flexibility if you find this to be deficient in some way. – dmckee Sep 25 '09 at 15:14

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

enter image description here

share|improve this answer

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.

share|improve this answer


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

share|improve this answer

You must log in to answer this question.

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