Mail Archives: djgpp/2001/01/19/05:03:22
> From: Dietmar DOT Segbert AT T-ONLINE DOT de (Dietmar Segbert)
> Newsgroups: comp.os.msdos.djgpp
> Date: 18 Jan 2001 17:45:00 +0100
>
> who can help me? I want to setup my printers for EMACS 20 for DOS. What
> must i do?
Is it for regular printing commands, such as `lpr-buffer', or for
PostScript pretty-printing commands, such as
`ps-print-buffer-with-faces'?
For the former, you don't need anything except setting the variable
`printer-name' to "LPT2" whenever you use the printer connected to
that port (the default for `printer-name' is "PRN", which usually
goes to LPT1).
For PostScript printing, you need to install Ghostscript, since as I
understand, none of your printers have a buiilt-in PostScript support.
Here's the relevant customization for using Ghostscript from my _emacs
file (you can find the explanation of this in the node "MS-DOS
Printing" in the on-line manual):
(setq ps-printer-name t)
(setq ps-lpr-command "d:/Aladdin/gs6.01/bin/gswin32c.exe")
(setq ps-lpr-switches '("-q" "-dNOPAUSE" "-dBATCH"
"-sDEVICE=mswinpr2"
"-sPAPERSIZE=a4"
))
(setq lpr-headers-switches nil)
Make sure you change ps-lpr-command above to the exact path to
gswin32c.exe on your system, after you install Ghostscript.
- Raw text -