From: Charles Sebold <csebold@gmail.com>
To: help-gnu-emacs@gnu.org
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 [thread overview]
Message-ID: <uljxyn1df.fsf_-_@gmail.com> (raw)
In-Reply-To: 2d7b8712-75b6-43ee-8681-80621dee9e77@x16g2000prn.googlegroups.com
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):
,----[ <Info:(emacs)Windows HOME> ]
| 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 ~/ <RET>'. 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 <RET>'.
|
| 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
next prev parent reply other threads:[~2008-09-11 15:33 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-09-10 15:48 On Edit GNU Emacs 22.2.1 Eats My Blank Characters At The End Of Lines ChristopherL
2008-09-10 21:21 ` David Kastrup
2008-09-10 23:25 ` Chris Giroir
2008-09-11 11:00 ` Bernardo Bacic
[not found] ` <mailman.19001.1221131089.18990.help-gnu-emacs@gnu.org>
2008-09-11 15:09 ` ChristopherL
2008-09-11 15:33 ` ChristopherL
2008-09-11 15:37 ` Charles Sebold
2008-09-11 15:42 ` ChristopherL
2008-09-11 16:10 ` Charles Sebold
2008-09-11 18:06 ` ChristopherL
2008-09-11 18:18 ` Charles Sebold
2008-09-11 18:28 ` ChristopherL
2008-09-11 18:41 ` Charles Sebold
2008-09-11 18:54 ` ChristopherL
2008-09-11 19:19 ` Charles Sebold
2008-09-11 19:28 ` ChristopherL
2008-09-11 19:31 ` Charles Sebold
2008-09-28 2:06 ` David Combs
2008-09-29 8:47 ` Ada (was:On Edit GNU Emacs 22.2.1 Eats My Blank Characters At The End Of Lines) Anders Wirzenius
2008-09-11 15:33 ` Charles Sebold [this message]
2008-09-11 18:48 ` On Edit GNU Emacs 22.2.1 Eats My Blank Characters At The End Of Lines Eli Zaretskii
[not found] ` <mailman.19046.1221158942.18990.help-gnu-emacs@gnu.org>
2008-09-11 19:16 ` ChristopherL
2008-09-11 19:32 ` Joost Diepenmaat
2008-09-11 20:06 ` Eli Zaretskii
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=uljxyn1df.fsf_-_@gmail.com \
--to=csebold@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).