zeos
asked on
Printing from Emacs to Local Printer
Hi, I'm running Redhat 4.2 and I would like to be able to print to my local printer from emacs in X windows. I want to print a man page for example. I have set my printer up with the name lp1 and can print from ghostview quite nicely. How do I set my printer up for emacs? Note: With my unix expierience I always thought there was a .emacs file but I can't seem to find it.
thanks
zeos
thanks
zeos
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Jason, thanks for the quick reply. Your suggestion worked, thanks. But if I'm in X windows and I want to be able to print the current buffer do you know of a way that I can have emacs default to lp1?
thanks
mike
thanks
mike
If you use something such as the following in .emacs this should do the job;
(setq printer t) ; Anything but a string.
(setq ps-lpr-command "whatever")
(setq ps-lpr-switches '("-q" "-dNOPAUSE"
"-sDEVICE=printer type"
"-r240x72"
"-sOutputFile=LPT2"
"-"))
Try the Emacs help on-line at http://monarch.mcs.csuhayward.edu/doc/emacs/
Hope this does the trick.
Let me know if you need more help....
Jason
(setq printer t) ; Anything but a string.
(setq ps-lpr-command "whatever")
(setq ps-lpr-switches '("-q" "-dNOPAUSE"
"-sDEVICE=printer type"
"-r240x72"
"-sOutputFile=LPT2"
"-"))
Try the Emacs help on-line at http://monarch.mcs.csuhayward.edu/doc/emacs/
Hope this does the trick.
Let me know if you need more help....
Jason
ASKER
Jason, Thanks for your help. It worked!
Thanks again
Mike
Thanks again
Mike
man <subject> | lpr -Plp1
Let me know how it goes,
Jason