From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Renato Newsgroups: gmane.emacs.help Subject: code listp to determine wich os I'm running on Date: Wed, 29 Jan 2014 19:41:00 +0100 Message-ID: <52E94B3C.4070805@gmail.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1391020733 13147 80.91.229.3 (29 Jan 2014 18:38:53 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 29 Jan 2014 18:38:53 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Jan 29 19:38:58 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8a2M-0008Bd-1o for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jan 2014 19:38:58 +0100 Original-Received: from localhost ([::1]:44683 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8a2L-00033y-Da for geh-help-gnu-emacs@m.gmane.org; Wed, 29 Jan 2014 13:38:57 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:42759) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8a21-00032v-V5 for help-gnu-emacs@gnu.org; Wed, 29 Jan 2014 13:38:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1W8a1t-0006aN-HU for help-gnu-emacs@gnu.org; Wed, 29 Jan 2014 13:38:37 -0500 Original-Received: from mail-wg0-x22c.google.com ([2a00:1450:400c:c00::22c]:33447) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8a1s-0006aH-VN for help-gnu-emacs@gnu.org; Wed, 29 Jan 2014 13:38:29 -0500 Original-Received: by mail-wg0-f44.google.com with SMTP id l18so4287643wgh.11 for ; Wed, 29 Jan 2014 10:38:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject :content-type; bh=J59Q1kj3S90YGCHwtiaTTBh4+eGmfTT22zNlkeXDg80=; b=riChaMzbb4ayXi8ZqgoW2/Gn9anTzE85sAR9tvM37GHueeNowIndfwuKaAxgc4tfEi knT8hZs4h3OU7Eadl8/cyEjHZFPzIN/xTOMsfOjh7pRl3XbjJw70NuAgtWyw8TJwkALK YRbkMqSGAOFa65BVbD1648oTogCdOO8qw+tqrlN2lp2VQ2AcrE/PcCGQZ1EuqJR2xaoQ KYG2pb2Iz5m5ZbctrhhwJOxIId5W2PPhoiK2pnuR0MvS1tEOMvkUOqX42hhleKoobfuC U41QNoFHIdi15CnUSAA/Nzadm5knVtjuHPLdzOwWtGqBjcaEkCW/jHsOegSt3YZNiDp1 YDmA== X-Received: by 10.180.87.232 with SMTP id bb8mr20526792wib.48.1391020707765; Wed, 29 Jan 2014 10:38:27 -0800 (PST) Original-Received: from [192.168.1.6] ([93.69.40.104]) by mx.google.com with ESMTPSA id hy8sm6685081wjb.2.2014.01.29.10.38.25 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 29 Jan 2014 10:38:26 -0800 (PST) User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131104 Icedove/17.0.10 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2a00:1450:400c:c00::22c X-Content-Filtered-By: Mailman/MimeDel 2.1.14 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 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 Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95760 Archived-At: Hi, I'm looking for some code to insert in my .emacs to determine wich s.o I'm running. 've foud this code: _______________________________________ ;; check OS type (cond((string-equalsystem-type"windows-nt") ; Microsoft Windows (progn(message"Microsoft Windows") ) ) ((string-equalsystem-type"darwin") ; Mac OS X (progn(message"Mac OS X") ) ) ((string-equalsystem-type"gnu/linux") ; linux (progn(message"Linux") ) ) ) ________________________ but I do't know lisp (I will learn it, of course...but not now...) I've understand that if I'm running Linux if I press F1-e, in the buffer I can read "linux". But What do I have to do to set a particular path (setq load-path... to start from if I click for my C-x f in emacs on linux or win? I mean wich variable do I have to check? and how do I build the if statement? TIA Renato