Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

4 Answers 4

up vote 6 down vote accepted

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

share|improve this answer
2  
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

enscript

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

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.