From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Steven Degutis Newsgroups: gmane.emacs.help Subject: Re: OS independent way to specify location of .emacs.d directory Date: Wed, 3 Apr 2013 19:19:49 -0500 Message-ID: References: <20130403170119.2bef743a@gauss> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/alternative; boundary=bcaec520f493bd80d504d97deddd X-Trace: ger.gmane.org 1365034803 8356 80.91.229.3 (4 Apr 2013 00:20:03 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 4 Apr 2013 00:20:03 +0000 (UTC) Cc: Help GNU Emacs To: Joe Riel Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Apr 04 02:20:31 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 1UNXup-0002Jw-I1 for geh-help-gnu-emacs@m.gmane.org; Thu, 04 Apr 2013 02:20:31 +0200 Original-Received: from localhost ([::1]:40189 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNXuQ-0003Sq-KR for geh-help-gnu-emacs@m.gmane.org; Wed, 03 Apr 2013 20:20:06 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:34518) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNXuD-0003Sj-5h for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 20:19:55 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UNXuA-0004o7-GL for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 20:19:53 -0400 Original-Received: from mail-pd0-f174.google.com ([209.85.192.174]:36268) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UNXuA-0004o1-AP for help-gnu-emacs@gnu.org; Wed, 03 Apr 2013 20:19:50 -0400 Original-Received: by mail-pd0-f174.google.com with SMTP id p12so1130625pdj.19 for ; Wed, 03 Apr 2013 17:19:49 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:cc:content-type; bh=/LAB4UcfspgsvbUPBOXXY31bcrjxeiz72KmhgdGdqFc=; b=UIGMEGdgEMrc0ybqUbJ1XcOI4HWnRUV+TiSnt+iAhqe54TweRzquroFOvDc5dKZyUZ ya2pLAGL0qtUjzQMZ+SJfA5fpAL9EHReCpW3HdQOZLpNdgLUSjeXGYBDkScygvp2Wz2A v+Qhej1hheOJueAYXNFJhW3KtINJyihWeEaUR7V3s6EJRkrm86j1W18L4fkOz/oSyy9V Zb3w7X2NKf7BkoKVSZM6QfU4/YeEqexbWTDe8ncWCEGzbnZLU5a3ovhDc4zKBiQ2Pzm+ FP4eubH+m7aDPAqJSVXTPE/hAnPRKKtwCJoUTxSH5XfcAt1k/4Inp6vw/zparPJONXyN wh3A== X-Received: by 10.66.6.42 with SMTP id x10mr6381442pax.218.1365034789599; Wed, 03 Apr 2013 17:19:49 -0700 (PDT) Original-Received: by 10.70.6.100 with HTTP; Wed, 3 Apr 2013 17:19:49 -0700 (PDT) In-Reply-To: <20130403170119.2bef743a@gauss> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.192.174 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:89968 Archived-At: --bcaec520f493bd80d504d97deddd Content-Type: text/plain; charset=ISO-8859-1 For unix it's `user-emacs-directory` but on Windows it's trickier: http://emacswiki.org/emacs/DotEmacsDotD I can't vouch that's an up-to-date article though. -Steven On Wed, Apr 3, 2013 at 7:01 PM, Joe Riel wrote: > 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. > > > -- > Joe Riel > > > --bcaec520f493bd80d504d97deddd Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
For unix it's `user-emacs-directory` but on Windows it= 's trickier:=A0http= ://emacswiki.org/emacs/DotEmacsDotD

I can'= t vouch that's an up-to-date article though.

-Steven


On Wed, Apr 3, 2013 at 7:01 PM, Joe R= iel <joer@san.rr.com> wrote:
Is there way that specifies the path to the = .emacs.d
directory that works on Linux, Windows, and Mac?
Currently I use

=A0 (format "%s/.emacs.d" (getenv "HOME"))

However, I doubt that is necessarily correct on Windows.


--
Joe Riel



--bcaec520f493bd80d504d97deddd--