help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: code listp to determine wich os I'm running on


From: Pascal J. Bourguignon
Subject: Re: code listp to determine wich os I'm running on
Date: Wed, 29 Jan 2014 22:14:28 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (gnu/linux)

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 !"


reply via email to

[Prev in Thread] Current Thread [Next in Thread]