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

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

Re: How to detect if Emacs is running in a terminal


From: Pascal Bourguignon
Subject: Re: How to detect if Emacs is running in a terminal
Date: 16 Apr 2005 01:42:31 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

Peter Dyballa <address@hidden> writes:

> Am 15.04.2005 um 17:10 schrieb Denis Bueno:
> 
> > Is there a better way?
> 
> What about this?
> 
> (cond ((= 21 emacs-major-version)
>    (progn
>      (desktop-read)
>      (cond ((string= "x" window-system)

There is this notion of a symbol in List & Intelligent Symbol Processing
language.  Perhaps you read some about it...

Try: M-x info RET m elisp RET m symbols RET

>          (message "Sind in X11")
>          (load "~/.emacs_X11")
>      ))  ; Ende X11
>      (cond ((string= "mac" window-system)
>          (message "Sind in Aqua")
>          (load "~/.emacs_Carbon")
> ;        (require '.emacs_Carbon)
>      ))  ; Ende Carbon
>      (cond ((string= 'nil window-system)
>          (message "Sind im Terminal")
>          (load "~/.emacs_nil")
>      ))  ; Ende Terminal
> )));Version 21

-- 
__Pascal Bourguignon__                     http://www.informatimago.com/

Nobody can fix the economy.  Nobody can be trusted with their finger
on the button.  Nobody's perfect.  VOTE FOR NOBODY.


reply via email to

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