From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: "leo" Newsgroups: gmane.emacs.help Subject: Re: how do i find out the platform emacs runs on? Date: Tue, 25 Nov 2003 14:53:14 +1100 Organization: Netspace Internet Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: References: <871xryxpmo.fsf@helmut.nilsson.homedns.org> NNTP-Posting-Host: deer.gmane.org X-Trace: sea.gmane.org 1069732928 24941 80.91.224.253 (25 Nov 2003 04:02:08 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 25 Nov 2003 04:02:08 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Nov 25 05:02:06 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 1AOUOs-00023R-00 for ; Tue, 25 Nov 2003 05:02:06 +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 1AOVK6-00067I-Ul for geh-help-gnu-emacs@m.gmane.org; Tue, 25 Nov 2003 00:01:14 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!news.mel.connect.com.au!news.netspace.net.au!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 27 Original-NNTP-Posting-Host: dsl-210-15-204-246.nsw.netspace.net.au Original-X-Trace: otis.netspace.net.au 1069732368 57295 210.15.204.246 (25 Nov 2003 03:52:48 GMT) Original-X-Complaints-To: usenet@otis.netspace.net.au Original-NNTP-Posting-Date: Tue, 25 Nov 2003 03:52:48 +0000 (UTC) X-Priority: 3 X-MSMail-Priority: Normal X-Newsreader: Microsoft Outlook Express 6.00.2600.0000 X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 Original-Xref: shelby.stanford.edu gnu.emacs.help:118611 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:14553 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14553 thanks a lot! that's exactly what i need! leo "Ola Nilsson" wrote in message news:871xryxpmo.fsf@helmut.nilsson.homedns.org... > "leo" writes: > > > i use emacs at work (pc) and at home (mac) and want to use the same .emacs > > file with some conditionals. > > > > so how do i find out if emacs runs on the pc or onthe mac? > > I use this in my .emacs. However, I've yet to learn more about elisp, so there > might be better ways: > > (if (eq system-type 'windows-nt) > (require 'cygwin-mount) > ) > > Regards, > -- > /Ola Nilsson