unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
[parent not found: <mailman.13331.1391158986.10748.help-gnu-emacs@gnu.org>]
* code listp to determine wich os I'm running on
@ 2014-01-31  9:03 Renato Pontefice
  2014-01-31 13:28 ` Stefan Monnier
       [not found] ` <mailman.13357.1391175021.10748.help-gnu-emacs@gnu.org>
  0 siblings, 2 replies; 25+ messages in thread
From: Renato Pontefice @ 2014-01-31  9:03 UTC (permalink / raw)
  To: help-gnu-emacs

emh....doesn't works on linux :-(

this is the F1 e result
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50asym
ptote.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50festival.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done
Loading /home/renato/Dropbox/emacs_prof/.emacs...done
For information about GNU Emacs and the GNU system, type C-h C-a.

and this is the .emacs (part of...)
;;-----------setta la directory di default (dove aprire e salvare file) su
Dropbox a seconda del s.o. con cui si apre emacs

(cond
 ((eq system-type 'windows-nt)(setq default-directory "C:/Documents and
Settings/renatop/Documenti/Dropbox/Documenti/org") )
 ((eq system-type 'darwin)     (message "Darwin"))
 ((eq system-type 'gnu/linux)  (message "č linux"))

;; ((eq system-type 'gnu/linux)  (setq default-directory
"/home/renato/Dropbox/Documenti/org"))
 (t                            (message "Unknown system")))
(message system-type)

why....:-(


^ permalink raw reply	[flat|nested] 25+ messages in thread
* code listp to determine wich os I'm running on
@ 2014-01-31  8:39 Renato Pontefice
  0 siblings, 0 replies; 25+ messages in thread
From: Renato Pontefice @ 2014-01-31  8:39 UTC (permalink / raw)
  To: help-gnu-emacs

emh....doesn't works on linux :-(

this is the F1 e result
Loading 00debian-vars...done
Loading /etc/emacs/site-start.d/50asym
ptote.el (source)...done
Loading /etc/emacs/site-start.d/50autoconf.el (source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...
Loading debian-ispell...
Loading /var/cache/dictionaries-common/emacsen-ispell-default.el
(source)...done
Loading debian-ispell...done
Loading /var/cache/dictionaries-common/emacsen-ispell-dicts.el
(source)...done
Loading /etc/emacs/site-start.d/50dictionaries-common.el (source)...done
Loading /etc/emacs/site-start.d/50festival.el (source)...done
Loading /etc/emacs/site-start.d/50psvn.el (source)...done
Loading /etc/emacs/site-start.d/50python-docutils.el (source)...done
Loading /home/renato/Dropbox/emacs_prof/.emacs...done
For information about GNU Emacs and the GNU system, type C-h C-a.

and this is the .emacs (part of...)
;;-----------setta la directory di default (dove aprire e salvare file) su
Dropbox a seconda del s.o. con cui si apre emacs

(cond
 ((eq system-type 'windows-nt)(setq default-directory "C:/Documents and
Settings/renatop/Documenti/Dropbox/Documenti/org") )
 ((eq system-type 'darwin)     (message "Darwin"))
 ((eq system-type 'gnu/linux)  (message "č linux"))

;; ((eq system-type 'gnu/linux)  (setq default-directory
"/home/renato/Dropbox/Documenti/org"))
 (t                            (message "Unknown system")))
(message system-type)

why....:-(


^ permalink raw reply	[flat|nested] 25+ messages in thread
* Re: code listp to determine wich os I'm running on
@ 2014-01-30  1:55 Louis-Guillaume Gagnon
  2014-01-30  1:57 ` Louis-Guillaume Gagnon
  0 siblings, 1 reply; 25+ messages in thread
From: Louis-Guillaume Gagnon @ 2014-01-30  1:55 UTC (permalink / raw)
  To: help-gnu-emacs

2014-01-29 Stefan Monnier <monnier@iro.umontreal.ca>:
> I wish I could point to a "doesnt-work-considered-harmful" diatribe.
>

Not a diatribe per se, but still a relevant read: How To Ask Questions
The Smart Way

glg



^ permalink raw reply	[flat|nested] 25+ messages in thread
* code listp to determine wich os I'm running on
@ 2014-01-29 18:41 Renato
  0 siblings, 0 replies; 25+ messages in thread
From: Renato @ 2014-01-29 18:41 UTC (permalink / raw)
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 25+ messages in thread

end of thread, other threads:[~2014-01-31 23:01 UTC | newest]

Thread overview: 25+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
     [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
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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).