From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Rusi Newsgroups: gmane.emacs.help Subject: Re: code listp to determine wich os I'm running on Date: Thu, 30 Jan 2014 04:59:31 -0800 (PST) Message-ID: <6749cc9c-c8a9-41fc-a718-09662e8f5dbd@googlegroups.com> References: <5787a521-407a-43ff-aaae-cf7b3caaa2a3@googlegroups.com> <34a716ab-8f06-4449-9114-ccac7007ef45@googlegroups.com> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 X-Trace: ger.gmane.org 1391086850 350 80.91.229.3 (30 Jan 2014 13:00:50 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 30 Jan 2014 13:00:50 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Jan 30 14:00:54 2014 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1W8rEk-0004DM-GA for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 14:00:54 +0100 Original-Received: from localhost ([::1]:48818 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1W8rEk-0007g3-4G for geh-help-gnu-emacs@m.gmane.org; Thu, 30 Jan 2014 08:00:54 -0500 X-Received: by 10.236.14.100 with SMTP id c64mr4894789yhc.38.1391086771745; Thu, 30 Jan 2014 04:59:31 -0800 (PST) X-Received: by 10.50.66.180 with SMTP id g20mr254866igt.5.1391086771483; Thu, 30 Jan 2014 04:59:31 -0800 (PST) Original-Path: usenet.stanford.edu!k15no10509550qaq.0!news-out.google.com!vg8ni1igb.0!nntp.google.com!c10no6901862igq.0!postnews.google.com!glegroupsg2000goo.googlegroups.com!not-for-mail Original-Newsgroups: gnu.emacs.help In-Reply-To: <34a716ab-8f06-4449-9114-ccac7007ef45@googlegroups.com> Complaints-To: groups-abuse@google.com Injection-Info: glegroupsg2000goo.googlegroups.com; posting-host=59.95.15.210; posting-account=mBpa7woAAAAGLEWUUKpmbxm-Quu5D8ui Original-NNTP-Posting-Host: 59.95.15.210 User-Agent: G2/1.0 Injection-Date: Thu, 30 Jan 2014 12:59:31 +0000 Original-Xref: usenet.stanford.edu gnu.emacs.help:203526 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:95795 Archived-At: 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