all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Please help with location of .emacs file and .emacs.d folder location
@ 2009-11-09 15:56 patrol
  2009-11-09 22:28 ` Lowell Gilbert
  2009-11-11 18:28 ` Eli Zaretskii
  0 siblings, 2 replies; 3+ messages in thread
From: patrol @ 2009-11-09 15:56 UTC (permalink / raw
  To: help-gnu-emacs

Hi,
I'm new to emacs, and my operating system is Win XP. I want to install
a bundle, but I'm getting stuck in terms of creating an .emacs file
and .emacs.d folder. They don't seem to exist after the install, and
I'm not sure where to put them myself. I've had a look at the Windows
FAQ section under "Where do I put my init file" and tried the steps as
suggested:

"If the environment variable HOME is set, use the directory it
indicates."
I looked under environmental variables in system properties, and the
variable HOME didn't exist.

"If the registry entry HKCU\SOFTWARE\GNU\Emacs\HOME is set, use the
directory it indicates."
I looked in the registry editor, and the key GNU doesn't exist.

"If the registry entry HKLM\SOFTWARE\GNU\Emacs\HOME is set, use the
directory it indicates. Not recommended, as it results in users
sharing the same HOME directory."
I didn't look here because it says 'not recommended'.

"If C:\.emacs exists, then use C:/. This is for backward
compatibility, as previous versions defaulted to C:/ if HOME was not
set."
.emacs (or _emacs) doesn't exist in the C: root.

"Use the user's AppData directory, usually a directory called
Application Data under the user's profile directory, the location of
which varies according to Windows version and whether the computer is
part of a domain."
I'm not sure about this. Should I just create a new folder
named .emacs.d in this directory? And should I just create a plain
text file .emacs in the directory as well?

Any help would be appreciated on this.
Thanks



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Please help with location of .emacs file and .emacs.d folder location
  2009-11-09 15:56 Please help with location of .emacs file and .emacs.d folder location patrol
@ 2009-11-09 22:28 ` Lowell Gilbert
  2009-11-11 18:28 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Lowell Gilbert @ 2009-11-09 22:28 UTC (permalink / raw
  To: help-gnu-emacs

patrol <patrol_boat@hotmail.com> writes:

> I'm new to emacs, and my operating system is Win XP. I want to install
> a bundle, but I'm getting stuck in terms of creating an .emacs file
> and .emacs.d folder. They don't seem to exist after the install, and
> I'm not sure where to put them myself. I've had a look at the Windows
> FAQ section under "Where do I put my init file" and tried the steps as
> suggested:

Try the last suggestion in that section, which you didn't quote, but is
as follows:

Within Emacs, <~> at the beginning of a file name is expanded to your HOME
directory, so you can always find your .emacs file with C-x C-f ~/.emacs.


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Please help with location of .emacs file and .emacs.d folder location
  2009-11-09 15:56 Please help with location of .emacs file and .emacs.d folder location patrol
  2009-11-09 22:28 ` Lowell Gilbert
@ 2009-11-11 18:28 ` Eli Zaretskii
  1 sibling, 0 replies; 3+ messages in thread
From: Eli Zaretskii @ 2009-11-11 18:28 UTC (permalink / raw
  To: help-gnu-emacs

> From: patrol <patrol_boat@hotmail.com>
> Date: Mon, 9 Nov 2009 07:56:09 -0800 (PST)
> 
> I'm not sure about this. Should I just create a new folder
> named .emacs.d in this directory? And should I just create a plain
> text file .emacs in the directory as well?

Just start Emacs, then type "C-x C-f ~/.emacs RET".  Then type there
whatever you want, and finally type "C-x C-s" to save the file.  Emacs
will put it in the correct place, and will find it there when you
restart it.

As for the .emacs.d directory, Emacs will create it itself when
needed.  You don't need to be bothered.




^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-11-11 18:28 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-11-09 15:56 Please help with location of .emacs file and .emacs.d folder location patrol
2009-11-09 22:28 ` Lowell Gilbert
2009-11-11 18:28 ` Eli Zaretskii

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.