Question

I use gnu emacs on Mac OS X, but I can't find the .emacs.

And I create ~\.emacs, but it doesn't work. How can I config my emacs?

Was it helpful?

Solution

The recommended practice these days is to create a folder called .emacs.d, then put a file called init.el in there. Emacs will load this file on startup.

cd
mkdir .emacs.d
cd .emacs.d
touch init.el

This .emacs.d folder is where Emacs will place temporary files, packages, etc, that you would not want polluting your home folder.

If you're new to emacs and just want to get up-and-running, consider downloading one of the existing emacs configurations on github and tweaking that:

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top