From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.help Subject: Re: OS independent way to specify location of .emacs.d directory Date: Thu, 04 Apr 2013 05:48:28 +0300 Message-ID: <834nfnggeb.fsf@gnu.org> References: <20130403170119.2bef743a@gauss> NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1365043706 21362 80.91.229.3 (4 Apr 2013 02:48:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Apr 2013 02:48:26 +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 Apr 04 04:48:54 2013 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 1UNaEP-0003BX-Pn for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 04:48:53 +0200 Original-Received: from localhost ([::1]:38427 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNaE1-0007rO-2L for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 22:48:29 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:38241) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNaDr-0007rG-82 for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 22:48:19 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNaDo-0001op-Vs for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 22:48:19 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:40908) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNaDo-0001oS-NB for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 22:48:16 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0MKP00300MA6M500@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 05:47:52 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0MKP0033WMFR6290@a-mtaout20.012.net.il> for help-gnu-emacs@gnu.org; Thu, 04 Apr 2013 05:47:52 +0300 (IDT) In-reply-to: <20130403170119.2bef743a@gauss> X-012-Sender: halo1@inter.net.il X-detected-operating-system: by eggs.gnu.org: Solaris 10 X-Received-From: 80.179.55.166 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:89969 Archived-At: > Date: Wed, 3 Apr 2013 17:01:19 -0700 > From: Joe Riel > > Is there way that specifies the path to the .emacs.d > directory that works on Linux, Windows, and Mac? > Currently I use > > (format "%s/.emacs.d" (getenv "HOME")) > > However, I doubt that is necessarily correct on Windows. Inside Emacs, it is correct on Windows as well.