From: Cecil Westerhof <Cecil@decebal.nl>
To: help-gnu-emacs@gnu.org
Subject: Re: Functions that need X
Date: Mon, 03 Jan 2011 15:46:39 +0100 [thread overview]
Message-ID: <8739paavu8.fsf@Compaq.site> (raw)
In-Reply-To: 8739pcwake.fsf@puma.rapttech.com.au
Op zaterdag 1 jan 2011 22:58 CET schreef Tim X.:
>> 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"))
>>
>
> Alternatively, just use the built-in variable window-system i.e.
>
> (unless (eq 'x window-system)
> ....)
>
> or even better, use one of the display capability predicates, such as
>
> (unless (display-graphic-p)
> ...)
I did not know this. Combining with another tip the code now has
become:
(when (display-graphic-p)
(set-scroll-bar-mode 'right)
(tool-bar-mode -1))
> One of the reasons I no longer use emacs in console mode is because I do
> almost everything on remote systems via tramp these days and very rarely
> need to run a remote emacs.
I work with screen and emacs on this system. The problem is that
sometimes the connection goes away. And if this happens my emacs will
hang. With screen I just can continue where I left of after the
connection is restored.
--
Cecil Westerhof
Senior Software Engineer
LinkedIn: http://www.linkedin.com/in/cecilwesterhof
next prev parent reply other threads:[~2011-01-03 14:46 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-01-01 19:35 Functions that need X Cecil Westerhof
2011-01-01 21:32 ` Barry Margolin
2011-01-01 21:58 ` Tim X
2011-01-01 23:29 ` Barry Margolin
2011-01-02 22:46 ` Tim X
2011-01-03 14:34 ` Cecil Westerhof
2011-01-03 15:55 ` Drew Adams
2011-01-03 4:52 ` Stefan Monnier
2011-01-03 5:45 ` Tim X
2011-01-03 14:46 ` Cecil Westerhof [this message]
2011-01-11 0:24 ` Kevin Rodgers
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=8739paavu8.fsf@Compaq.site \
--to=cecil@decebal.nl \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).