help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: accessing environment variable


From: Stephan Hennig
Subject: Re: accessing environment variable
Date: Fri, 14 Sep 2007 11:46:24 +0200
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.6) Gecko/20070728 Thunderbird/2.0.0.6 Mnenhy/0.7.5.0 Hamster/2.1.0.1501

Harald Hanche-Olsen schrieb:

>> Does that mean there is no way to feed the value of an environment
>> variable into ps-lpr-command (same for doc-view-ghostscript-program)?
> 
> No.  I am not intimately familiar with the customization system on
> emacs, but you can certainly do it by including
> 
>   (setq ps-lpr-command (getenv "GS_PROG"))
> 
> in your .emacs file.

Thank you and Drew!  It works now.


> Things get a bit trickier if those environment variables don't just
> name a program, but names program arguments as well.

Those are hard-coded in ps-lpr-switches and that's ok for me.  Thanks again!

Best regards,
Stephan Hennig


reply via email to

[Prev in Thread] Current Thread [Next in Thread]