8

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.

sverrejoh
  • 183
  • 1
  • 5

4 Answers4

11

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

5

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

enter image description here

Gaff
  • 18,569
  • 15
  • 57
  • 68
Mark Harrison
  • 982
  • 4
  • 9
  • 17
2

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.

David Webb
  • 11,876
  • 3
  • 43
  • 39
2

enscript

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