From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Charles Sebold Newsgroups: gmane.emacs.help Subject: Can't find .emacs file on Windows (was: Re: On Edit GNU Emacs 22.2.1 Eats My Blank Characters At The End Of Lines) Date: Thu, 11 Sep 2008 10:33:32 -0500 Organization: Ministry of Silly Walks Message-ID: References: <2d7b8712-75b6-43ee-8681-80621dee9e77@x16g2000prn.googlegroups.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1221147799 22526 80.91.229.12 (11 Sep 2008 15:43:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Sep 2008 15:43:19 +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 Sep 11 17:44:12 2008 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KdoKf-0006kh-BM for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 17:43:45 +0200 Original-Received: from localhost ([127.0.0.1]:40549 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KdoJf-0000H7-0f for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Sep 2008 11:42:43 -0400 Original-Path: news.stanford.edu!newsfeed.stanford.edu!postnews.google.com!news2.google.com!npeer03.iad.highwinds-media.com!news.highwinds-media.com!feed-me.highwinds-media.com!post01.iad.highwinds-media.com!newsfe04.iad.POSTED!7564ea0f!not-for-mail Mail-Copies-To: nobody Original-Newsgroups: gnu.emacs.help X-Using-Mail-Mode: Gmail Face: iVBORw0KGgoAAAANSUhEUgAAADAAAAAwAgMAAAAqbBEUAAAAAXNSR0IArs4c6QAAAAxQTFRF Py4qdFVKtYRz3aSQR+07SwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9gIEhcaB8/5OroA AAHxSURBVCjPLdExa9tAFMDxp1Jl6OZBGrJ36ac4g+2hSxXwCexAOzmQM9QfIIs9NLMNOYPVoUsl 0BNIUwafQPoKGdolHbo0BstgLy3FEuj15HS7H/93B3cHxExMieiLzwBwbotcI2xA8zM8aDwupxoP /BnP5fyE4vuMgWQ8yiuiv08LBtlUxDpQXX5iQLNh0oDWtw7Uczc64ejNgKaWaNZYvp+DeHjp5lRL V31YAGeWMT743J+8/QZbo9UXGIwz790vmBn99pAU5lHPh99mu+PWkifl7VfonvW4e/T7Vi2vwXnF ZdcN73uT4A66risuN/iHo9+HzcBbiQ2uuWy1oL0KwjebLaK3R/Dt69XHQ5FgRAjMdDnuirj4XBcA 9uoqXZdRFe0bIFKGiJNSj9l6Ot1yj3aoS/yDMqpyKlWDn1V5up4u58ljUTcoY7izswCj/6Xy8EKc UChIvfBF2DxWjQrU0jH4ZVN2ClA6FrfzpuwBfcsLcKxLpCAYDVwshkRVtodi8Zp7+VKPHUqI/YFA IfWmKoVCuiIONTLSR0vLS+gpqahScOzzC0H+5JDra0tmOqKU+vf2Cu6Z0Rni4ian/alw4S9uqMGI Ga43utBjSr8bszCU3UiHUMP0Qt6O0hRl842DFTejSgUDWDvmcNTpqjhc8n9hvWnVsoKmHAAAAABJ RU5ErkJggg== User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (windows-nt) Cancel-Lock: sha1:lCQZB2yzPfqLOjK6PGd2xhzcWMk= Original-Lines: 52 Original-NNTP-Posting-Host: cbggobbepdfeflbildaedobifmeaokba Original-X-Complaints-To: abuse@charter.net Original-X-Trace: ifnckfofmjglplgffkhgnhldfhiklkalkemnhjjipncnafmgcbggobbepdfeflbiddfpoklkdebinfchhckffadkbphbigcddejjbcibbgcednmalceebhkllknomkopfdlbpmaelemcakjp Original-NNTP-Posting-Date: Thu, 11 Sep 2008 15:33:33 UTC Original-Xref: news.stanford.edu gnu.emacs.help:162081 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:57423 Archived-At: Changing the subject line when you're changing the subject will help more people see your question. On 11 Sep 2008, ChristopherL wrote: > I'm using Windows XP and can't seem to find my .emacs file! > > First, on windows filenames can't begin with a dot. On modern Windows, they usually can. I used to use .emacs (and now ~/.emacs.d/init.el) without problems. You can also use _emacs instead of .emacs. >From the Emacs manual (which came with Emacs, hit C-h r to get there): ,----[ ] | The Windows equivalent of the `HOME' directory is the "user-specific | application data directory". The actual location depends on your | Windows version and system configuration; typical values are | `C:\Documents and Settings\USERNAME\Application Data' on Windows 2K/XP | and later, and either `C:\WINDOWS\Application Data' or | `C:\WINDOWS\Profiles\USERNAME\Application Data' on the older Windows | 9X/ME systems. | | The home directory is where your init file `.emacs' is stored. When | Emacs starts, it first checks whether the environment variable `HOME' | is set. If it is, it looks for the init file in the directory pointed | by `HOME'. If `HOME' is not defined, Emacs checks for an existing | `.emacs' file in `C:\', the root directory of drive `C:'(1). If | there's no such file in `C:\', Emacs next uses the Windows system calls | to find out the exact location of your application data directory. If | that fails as well, Emacs falls back to `C:\'. | | Whatever the final place is, Emacs sets the value of the `HOME' | environment variable to point to it, and it will use that location for | other files and directories it normally creates in the user's home | directory. | | You can always find out where Emacs thinks is your home directory's | location by typing `C-x d ~/ '. This should present the list of | files in the home directory, and show its full name on the first line. | Likewise, to visit your init file, type `C-x C-f ~/.emacs '. | | Because MS-DOS does not allow file names with leading dots, and | because older Windows systems made it hard to create files with such | names, the Windows port of Emacs supports an alternative name `_emacs' | as a fallback, if such a file exists in the home directory, whereas | `.emacs' does not. `---- -- Charles Sebold 11th of September, 2008