From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: Ola Nilsson Newsgroups: gmane.emacs.help Subject: Re: how do i find out the platform emacs runs on? Date: Mon, 24 Nov 2003 06:11:25 GMT Organization: @Home Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Message-ID: <871xryxpmo.fsf@helmut.nilsson.homedns.org> References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1069654564 9573 80.91.224.253 (24 Nov 2003 06:16:04 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 24 Nov 2003 06:16:04 +0000 (UTC) Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Mon Nov 24 07:16:01 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 1AOA0v-0000Yf-00 for ; Mon, 24 Nov 2003 07:16:01 +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 1AOAwT-0002V1-B2 for geh-help-gnu-emacs@m.gmane.org; Mon, 24 Nov 2003 02:15:29 -0500 Original-Path: shelby.stanford.edu!newsfeed.stanford.edu!news.tele.dk!news.tele.dk!small.news.tele.dk!news.algonet.se!algonet!news-stob.telia.net!telia.net!217.209.241.173.MISMATCH!masternews.telia.net.!newsc.telia.net.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help User-Agent: Gnus/5.1002 (Gnus v5.10.2) Emacs/21.3 (gnu/linux) Cancel-Lock: sha1:jU8zfEu9vdcrK+ftvzkLq+j8rf4= Original-Lines: 17 Original-NNTP-Posting-Host: 195.67.191.16 Original-X-Complaints-To: abuse@telia.com Original-X-Trace: newsc.telia.net 1069654285 195.67.191.16 (Mon, 24 Nov 2003 07:11:25 CET) Original-NNTP-Posting-Date: Mon, 24 Nov 2003 07:11:25 CET Original-Xref: shelby.stanford.edu gnu.emacs.help:118576 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:14518 X-Report-Spam: http://spam.gmane.org/gmane.emacs.help:14518 "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