remote cups printer: trying to print from emacs: not working; .emacs syntax question
Hi I am running sid. I have a system which prints using cups to a remote cups
printer.
I am trying to get printing from emacs working. In the past it "just worked".
Now it seems not to.
Emacs tries to print using "lpr", which doesnt seem to work.
I changed the variable in my .emacs
*****************
mlaks@Rashi:~$ cat .emacs
(custom-set-variables
;; custom-set-variables was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
'(mouse-wheel-mode t nil (mwheel))
'(ps-lpr-command "kprinter"))
(custom-set-faces
;; custom-set-faces was added by Custom -- don't edit or cut/paste it!
;; Your init file should contain only one such instance.
)
(set-frame-height (selected-frame) 130)
(set-frame-width (selected-frame) 120)
******************
And now it gives me the annoying kprinter dialog.
However if I try this in .emacs
'(ps-lpr-command "kprinter --nodialog"))
then it fails. It seems to be trying to find the file
"kprinter --nodialog".
emacs doesnt realize that --nodialog is a command line switch to kprinter....
what is the correct emacs-lisp syntax?
I could just make an alias to kprinter --nodialog, but what is the correct
emacs-lisp syntax for this.
Or else tell me how to do this some other way. What to do about getting lpr
working right with emacs again...
Mitchell
Reply to: