From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Peter Dyballa Newsgroups: gmane.emacs.help Subject: Re: A question about non-window terminals Date: Tue, 7 Mar 2006 20:15:34 +0100 Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 (Apple Message framework v746.2) Content-Type: text/plain; charset=US-ASCII; delsp=yes; format=flowed Content-Transfer-Encoding: 7bit X-Trace: sea.gmane.org 1141775592 10660 80.91.229.2 (7 Mar 2006 23:53:12 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 7 Mar 2006 23:53:12 +0000 (UTC) Cc: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Mar 08 00:53:10 2006 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by ciao.gmane.org with esmtp (Exim 4.43) id 1FGlzF-0001By-DD for geh-help-gnu-emacs@m.gmane.org; Wed, 08 Mar 2006 00:53:05 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGlzG-0001lk-Bb for geh-help-gnu-emacs@m.gmane.org; Tue, 07 Mar 2006 18:53:06 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1FGhep-0007tE-My for help-gnu-emacs@gnu.org; Tue, 07 Mar 2006 14:15:43 -0500 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1FGhem-0007JS-6y for help-gnu-emacs@gnu.org; Tue, 07 Mar 2006 14:15:42 -0500 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1FGhel-0007H5-R2 for help-gnu-emacs@gnu.org; Tue, 07 Mar 2006 14:15:39 -0500 Original-Received: from [217.72.192.243] (helo=fmmailgate05.web.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1FGhhR-0003j9-9Y for help-gnu-emacs@gnu.org; Tue, 07 Mar 2006 14:18:25 -0500 Original-Received: by fmmailgate05.web.de (8.12.10/8.12.10/webde Linux 0.7) with ESMTP id k27JFbcN000739; Tue, 7 Mar 2006 20:15:37 +0100 Original-Received: from [87.193.39.49] (helo=[192.168.1.2]) by smtp05.web.de with asmtp (TLSv1:RC4-SHA:128) (WEB.DE 4.106 #94) id 1FGhej-0007ri-00; Tue, 07 Mar 2006 20:15:37 +0100 In-Reply-To: X-Priority: 3 X-Image-Url: http://homepage.mac.com/sparifankal/.cv/thumbs/me.thumbnail Original-To: "xinxiang" X-Mailer: Apple Mail (2.746.2) X-Sender: Peter_Dyballa@web.de X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:33639 Archived-At: Am 07.03.2006 um 09:07 schrieb xinxiang: > I want to set the default face color and fontset by myself, but I > still > want to use the default configure while using non-windows terminals. > Is there any function or env I can use to recognize the terminal type? (defconst mEV (emacs-version) "Keep the Emacs version string, that is needed a few times.") (defconst mWS (symbol-value 'window-system) "Running as some windowing system's client, or as slave of a terminal emulator?") (cond ((string= "x" mWS) (message "Sind in X11") (...) )) Ende X11 (cond ((string= "mac" mWS) (message "Sind im Karbon") (...) )) Ende Carbon (cond ((string= "ns" mWS) (message "Sind im Kakao") (...) )) Ende Terminal (cond ((string= 'nil mWS) (message "Sind im Terminal") (...) )) Ende Terminal or (if (not (string-match "XEmacs" mEV)) (load (format "~/.emacs_%s" window-system)) ) -- Greetings Pete War springs from unseen and generally insignificant causes. -Anonymous