2

When printing a buffer (for example with the Printing package), I understand Emacs coverts it into a Postscript file and then prints this file. But this Postscript file always contains a grey box at the top, displaying information about the buffer (name of the buffer, path, date, number of pages), which prefaces the actual buffer I want to print. After some research I haven't got any idea how to remove this box.

In other words, I would like the content of my buffer, and only that, to be sent to the printer.

Drew
  • 77,472
  • 10
  • 114
  • 243
Giuseppe
  • 455
  • 2
  • 14
  • (setq ps-print-header nil)? – Arash Esbati May 05 '17 at 16:35
  • That's it ! Thanks a lot Arash Esbati ! Can I ask you how you got to know that ? – Giuseppe May 05 '17 at 20:26
  • Usually, .el files have a ;;; Commentary: section at the beginning with useful information about usage and/or implementation. You can read the file itself with M-x find-library RET ps-print RET or only that section with M-x describe-package RET ps-print RET. I read it once as I wanted to adjust some other things. – Arash Esbati May 06 '17 at 08:47

1 Answers1

0

The answer was given by Arash Esbati in a comment to my question: the variable ps-print-header needs to be changed to nil. By the way, other variables related to Postscript printing can be customized.

Giuseppe
  • 455
  • 2
  • 14