Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to config gnu emacs on Mac OS X

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?

like image 235
user2056639 Avatar asked Dec 12 '22 17:12

user2056639


1 Answers

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:

  • Prelude
  • Starter Kit
like image 123
Chris Barrett Avatar answered Dec 28 '22 19:12

Chris Barrett