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: Rusi
Subject: Re: code listp to determine wich os I'm running on
Date: Thu, 30 Jan 2014 04:59:31 -0800 (PST)
User-agent: G2/1.0

On Thu, Jan 30, 2014 at 5:26 PM, Renato Pontefice wrote:
>
> Hi Rusi!
> it seem to work!
> _______________________________________________---
> (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)  (setq default-directory 
> "/home/renato/Dropbox/Documenti/org") )
>  (t                            (message "Unknown system")))
>
> for now, I've tested it on Win! And it works. This afternoon I will check  on 
> Linux. I think I've understand.
>
> Thank you again
>
> Renato
>

Not sure what you are trying to do...

However globally setting a buffer-local variable like default-directory may not 
be what you want.
Maybe someone else can suggest a better variable.

Couple of things I can think of (for windows): You can change the 'start in' 
option of the emacs-shortcut
You can set the windows (not emacs!) variable HOME, ie set it in control-panel


reply via email to

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