Вопрос

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?

Это было полезно?

Решение

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:

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top