From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: seki Newsgroups: gmane.emacs.help Subject: Re: how do i find out the platform emacs runs on? Date: Wed, 26 Nov 2003 10:32:32 +0100 Organization: Guest of ProXad - France Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <3fc47348$0$2368$626a54ce@news.free.fr> References: <871xryxpmo.fsf@helmut.nilsson.homedns.org> NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: 8Bit X-Trace: sea.gmane.org 1069839996 7142 80.91.224.253 (26 Nov 2003 09:46:36 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 26 Nov 2003 09:46:36 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Nov 26 10:46:32 2003 Return-path: Original-Received: from monty-python.gnu.org ([199.232.76.173]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1AOwFk-0006j9-00 for ; Wed, 26 Nov 2003 10:46:32 +0100 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.24) id 1AOxB1-0006pS-LI for geh-help-gnu-emacs@m.gmane.org; Wed, 26 Nov 2003 05:45:43 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!newsfeed.icl.net!newsfeed.fjserv.net!proxad.net!feeder2-1.proxad.net!news2-2.free.fr!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: KNode/0.7.2 Original-Lines: 33 Original-NNTP-Posting-Date: 26 Nov 2003 10:32:56 MET Original-NNTP-Posting-Host: 195.25.216.129 Original-X-Trace: 1069839176 news2-2.free.fr 2368 195.25.216.129:39286 Original-X-Complaints-To: abuse@proxad.net Original-Xref: shelby.stanford.edu gnu.emacs.help:118651 Original-To: help-gnu-emacs@gnu.org X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.2 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: main.gmane.org gmane.emacs.help:14593 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14593 Ola Nilsson wrote: > > (if (eq system-type 'windows-nt) > (require 'cygwin-mount) > ) > I try to have one .emacs between Mac OSX, Linux and NT, here what i defined : ;windows (if (eq system-type 'windows-nt) (progn ... )) ;linux (if (eq system-type 'linux) (progn ... )) ;mac (if (eq system-type 'darwin) (progn ... )) for macintosh, i use darwin, as it works both for console and windowed system. If you want also to check between console and graphical : test if window-system is not nil (for example to define a default-frame-alist) Sébastien Kirche