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

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

code listp to determine wich os I'm running on


From: Renato
Subject: code listp to determine wich os I'm running on
Date: Wed, 29 Jan 2014 19:41:00 +0100
User-agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/20131104 Icedove/17.0.10

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


reply via email to

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