1

I'm new to Emacs if you can't tell. Right now I am using Carbon Emacs on Mac OSX. I would like to customize the layout and whatnot but I have no idea where I can find or make a new .emacs file in order to do so.

Thanks for the help.

Luke Girvin
  • 13,221
  • 9
  • 64
  • 84
retnuh
  • 590
  • 3
  • 6
  • 16
  • possible duplicate of [Where is the .emacs file in windows GNU emacs ](http://stackoverflow.com/questions/1966380/where-is-the-emacs-file-in-windows-gnu-emacs) – Trey Jackson Nov 08 '10 at 18:13
  • @Trey Carbon emacs is one of the several Mac OS versions. Do you *really* think that this is a duplicate of a Windows specific questions? – dmckee --- ex-moderator kitten Nov 08 '10 at 18:16
  • @dmckee Do you *really* think that Emacs isn't cross platform? Emacs looks for the .emacs file in the same locations on all platforms, one of which is relative to the `HOME` environment variable, which is exactly what you wrote, which is what the duplicate answer says... – Trey Jackson Nov 08 '10 at 18:45
  • @Trey: I know that Mac OS Classic didn't have the concept of a home directory (so that each port had to solve this problem, by using the Preferences folder for instance) and that the Windows answer had to deal with the special meaning of '.' in that context. If "Where does .emacs go on OS?" is valid at all then Windows and Mac OS are different. – dmckee --- ex-moderator kitten Nov 08 '10 at 18:49
  • @dmckee Did you read the accepted answer for that question? It has the general solution... i.e. `C-x C-f ~/.emacs` – Trey Jackson Nov 09 '10 at 03:56

2 Answers2

4

In the scratch buffer, evaluate the following... (find-file user-init-file)

cristobalito
  • 4,192
  • 1
  • 29
  • 41
0

I put mine in my home directory (i.e. the usual place for unix installations of emacs) and it works fine:

$ ls -lh /Users/dmckee/.emacs
-rw-r--r-- 1 dmckee staff 11K Aug  4 09:28 /Users/dmckee/.emacs
dmckee --- ex-moderator kitten
  • 98,632
  • 24
  • 142
  • 234