all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Pascal J. Bourguignon" <pjb@informatimago.com>
To: help-gnu-emacs@gnu.org
Subject: Re: code listp to determine wich os I'm running on
Date: Wed, 29 Jan 2014 22:14:28 +0100	[thread overview]
Message-ID: <87sis6h4nf.fsf@kuiper.lan.informatimago.com> (raw)
In-Reply-To: mailman.13113.1391020728.10748.help-gnu-emacs@gnu.org

Renato <renato.pontefice@gmail.com> writes:

> 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?

There are those variables, and probably other too.

;; system-type          darwin   gnu/linux  cygwin windows-nt
;; system-name          "naiad.informatimago.com" "hermes.afaa.asso.fr"
;; system-configuration "i686-pc-linux-gnu" "i686-pc-cygwin" "i386-apple-darwin9.8.0"
;; window-system        nil x mac ns w32
;; emacs-major-version  18 19 20 21 23
;; emacs-minor-version  0 1 2 3
;; emacs-version        "20.7.2" "21.2.1" 


-- 
__Pascal Bourguignon__
http://www.informatimago.com/
"Le mercure monte ?  C'est le moment d'acheter !"


  parent reply	other threads:[~2014-01-29 21:14 UTC|newest]

Thread overview: 25+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.13113.1391020728.10748.help-gnu-emacs@gnu.org>
2014-01-29 20:28 ` code listp to determine wich os I'm running on Emanuel Berg
2014-01-29 22:12   ` Renato
2014-01-29 23:26     ` Peter Dyballa
2014-01-30  0:11     ` Stefan Monnier
     [not found]   ` <mailman.13124.1391033590.10748.help-gnu-emacs@gnu.org>
2014-01-29 22:27     ` Emanuel Berg
2014-01-30  2:27     ` Rusi
2014-01-30  2:47     ` Rusi
2014-01-29 21:14 ` Pascal J. Bourguignon [this message]
2014-01-29 23:52   ` Emanuel Berg
2014-01-30  2:43 ` Rusi
2014-01-30  3:47   ` Stefan Monnier
     [not found]   ` <mailman.13151.1391053674.10748.help-gnu-emacs@gnu.org>
2014-01-30  4:01     ` Rusi
2014-01-30 12:59       ` Rusi
     [not found] <mailman.13331.1391158986.10748.help-gnu-emacs@gnu.org>
2014-01-31 11:57 ` Rusi
2014-01-31  9:03 Renato Pontefice
2014-01-31 13:28 ` Stefan Monnier
2014-01-31 23:01   ` Tassilo Horn
     [not found] ` <mailman.13357.1391175021.10748.help-gnu-emacs@gnu.org>
2014-01-31 14:05   ` Rusi
2014-01-31 17:02     ` Renato
     [not found]     ` <mailman.13385.1391187779.10748.help-gnu-emacs@gnu.org>
2014-01-31 17:15       ` Rusi
2014-01-31 17:32       ` Rusi
  -- strict thread matches above, loose matches on Subject: below --
2014-01-31  8:39 Renato Pontefice
2014-01-30  1:55 Louis-Guillaume Gagnon
2014-01-30  1:57 ` Louis-Guillaume Gagnon
2014-01-29 18:41 Renato

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87sis6h4nf.fsf@kuiper.lan.informatimago.com \
    --to=pjb@informatimago.com \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.