From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Evan Driscoll Newsgroups: gmane.emacs.help Subject: Re: How to specify path to .emacs.d Date: Tue, 30 Oct 2012 11:09:24 -0500 Message-ID: <508FFBB4.9080105@cs.wisc.edu> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig7B4D3426228DFCBE5329D98F" X-Trace: ger.gmane.org 1351613406 8288 80.91.229.3 (30 Oct 2012 16:10:06 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 30 Oct 2012 16:10:06 +0000 (UTC) Cc: help-gnu-emacs To: Barry OReilly Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Tue Oct 30 17:10:15 2012 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 1TTEOH-0006Cr-Re for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Oct 2012 17:10:09 +0100 Original-Received: from localhost ([::1]:56136 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTEO9-00017r-DJ for geh-help-gnu-emacs@m.gmane.org; Tue, 30 Oct 2012 12:10:01 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:56500) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTENy-0000yI-MC for help-gnu-emacs@gnu.org; Tue, 30 Oct 2012 12:09:56 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TTENs-0003fl-Rj for help-gnu-emacs@gnu.org; Tue, 30 Oct 2012 12:09:50 -0400 Original-Received: from sandstone.cs.wisc.edu ([128.105.6.39]:41916) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TTENs-0003f2-HL for help-gnu-emacs@gnu.org; Tue, 30 Oct 2012 12:09:44 -0400 Original-Received: from hank.cs.wisc.edu (hank.cs.wisc.edu [128.105.14.80]) by sandstone.cs.wisc.edu (8.14.1/8.14.1) with ESMTP id q9UG9Z0x028360; Tue, 30 Oct 2012 11:09:35 -0500 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:10.0.8) Gecko/20121012 Thunderbird/10.0.8 In-Reply-To: X-Enigmail-Version: 1.4 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-Received-From: 128.105.6.39 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:87493 Archived-At: This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig7B4D3426228DFCBE5329D98F Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable On 10/29/2012 03:37 PM, Barry OReilly wrote: > Another use case is that I'm getting my Emacs configuration to work on > Windows, and I discovered that Windows shortcuts are apparently .lnk > files and don't function like a symlink. I'm unsure how to use a > .emacs.d at an arbitrary location, and only know to copy it to home > instead. This is inconvenient because I want to use a .emacs.d straigh= t > out of a Mercurial repo located elsewhere. I can't help with the Emacs part of your question, but Vista and higher have true (though still a bit brain dead in some respects) symlinks. Look at the 'mklink' command. You'll need a privilege that isn't granted to users by default (silly decision #1), and while you can change that, for a one-off thing it's easier to just elevate yourself when opening the command prompt. Also note that Windows symlinks are specific to either pointing to a file or a directory, so you'll have to explicitly tell 'mklink' that you want a directory symlink. On XP and 2000 (and also Vista and higher) you also have both hard links and something called "directory junctions" available. (Windows is capable of creating hard links to directories. Presumably you have to be careful not to shoot yourself in the foot by creating a cycle.) I think 'mklink' may create hard links too though I'm not sure; for directory junctions, there are a couple third-party utilities, e.g. Mark Russinovich's 'junction': http://technet.microsoft.com/en-us/sysinternals/bb896768.aspx Evan --------------enig7B4D3426228DFCBE5329D98F Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.14 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iQEcBAEBAgAGBQJQj/u/AAoJEAOzoR8eZTzgI64IAJBqihjjzIH6wqbiVVwWS78K 3fZK1PfUHW+CU1AUZr4EqyZ/s5WNxKIelCpYuf96WhKKXGziox2ERy4GAy60WdIt BVcT2hWEYCvAS3uTDXCO4FqZ20G0Ce9Bf58A5ieQwt9GRq+Le3z9YvMJZLG7zInC 9vve+cHzCuB0HnHpKp6VFLNvXVY6cDg7JUwvdgaetccCF5q2nxQ15caiUNgm2MdT SuNRgLJed7iqFV1RzhqKa/r6k62UXDwSn+uPBoo78V/m2yokyClbypLRmvk1GjDc taCK1VtkpYfonAz6xuEki6DkazWUlGUhpAnLkJIPwd3C+Zn0Umju6RCb3BSaV1w= =Xph7 -----END PGP SIGNATURE----- --------------enig7B4D3426228DFCBE5329D98F--