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

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

Re: Functions that need X


From: Kevin Rodgers
Subject: Re: Functions that need X
Date: Mon, 10 Jan 2011 17:24:25 -0700
User-agent: Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.13) Gecko/20101207 Thunderbird/3.1.7

On 1/1/11 12:35 PM, Cecil Westerhof wrote:
I have a lot of functionality written for my Emacs. I was asked to
maintain a server for a friend. I installed Emacs there and put my
Emacs functionality there also. But some things are depending on X.
Because of this I made those depended working with X. In the start of
my .emacs I have:
     (defconst +using-X+ (getenv "DISPLAY"))

And where I use X-functionality (not much at the moment) I have:
     (unless (not +using-X+)
       (set-scroll-bar-mode 'right)
       (tool-bar-mode -1))

(when (eq window-system 'x)
   ...)

or probably just

(when window-system
   ...)

--
Kevin Rodgers
Denver, Colorado, USA




reply via email to

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