From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?=C3=93scar_Fuentes?= Newsgroups: gmane.emacs.help Subject: Re: Location of .emacs in Windows 7 Date: Sat, 17 Jan 2015 03:02:39 +0100 Message-ID: <878uh2qi4g.fsf@wanadoo.es> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1421460187 12920 80.91.229.3 (17 Jan 2015 02:03:07 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sat, 17 Jan 2015 02:03:07 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat Jan 17 03:03:03 2015 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 1YCIj9-0001jQ-Ac for geh-help-gnu-emacs@m.gmane.org; Sat, 17 Jan 2015 03:03:03 +0100 Original-Received: from localhost ([::1]:58047 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCIj8-0005zV-Ix for geh-help-gnu-emacs@m.gmane.org; Fri, 16 Jan 2015 21:03:02 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53902) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCIiw-0005zP-W7 for help-gnu-emacs@gnu.org; Fri, 16 Jan 2015 21:02:51 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YCIit-0003VS-Ql for help-gnu-emacs@gnu.org; Fri, 16 Jan 2015 21:02:50 -0500 Original-Received: from plane.gmane.org ([80.91.229.3]:56673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YCIit-0003VB-Kd for help-gnu-emacs@gnu.org; Fri, 16 Jan 2015 21:02:47 -0500 Original-Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1YCIir-0001gx-AL for help-gnu-emacs@gnu.org; Sat, 17 Jan 2015 03:02:45 +0100 Original-Received: from 129.red-88-10-128.dynamicip.rima-tde.net ([88.10.128.129]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jan 2015 03:02:45 +0100 Original-Received: from ofv by 129.red-88-10-128.dynamicip.rima-tde.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 17 Jan 2015 03:02:45 +0100 X-Injected-Via-Gmane: http://gmane.org/ Original-Lines: 20 Original-X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: 129.red-88-10-128.dynamicip.rima-tde.net User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) Cancel-Lock: sha1:5qujDA84eEzxHQ0yAMr3IIwhm/M= X-detected-operating-system: by eggs.gnu.org: Genre and OS details not recognized. X-Received-From: 80.91.229.3 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:102123 Archived-At: Steve Graham writes: > Using C-x C-f I can read in, edit and store .emacs in ~/.emacs . > However, when I search for the file, I cannot find it. There is a well-defined rule for what Emacs considers `home' (see the "Windows HOME" node on the Emacs documentation.) But if you just want a simple method for controlling what `~' means for Emacs, just define a HOME environment variable (on the Control Panel) containing the directory you wish to be `~' (said directory must exist before running Emacs.) At startup, Emacs will read that environment variable and interpret `~' as a shortcut to the directory it mentions. OTOH, if you wish to know what `~' expands *now* to in Emacs, just visit that directory with `C-x d ~ [ENTER]' and you will see on the top part of the resulting buffer the complete path to `~', along with its contents. [snip]