I'm planning to write a series of posts on customizing Emacs, sharing tips and developing elisp to make the job easier. This is an introductory post to this series.
My first tip is to store your setup on github. I've done this with my emacs-setup project. I'll be updating this repository as I develop new elisp. Having your setup on github means you can put it on any computer you use, and other people can see and refer to your config. Stealing bits of elisp from other people's setup is a long-held emacs tradition, and github makes this easy.
My second tip is to store your configuration in
~/.emacs.d/init.el
, not
~/.emacs
. The .emacs.d
directory is where all the action happens
these days. Configuration files are stored there, as well as ELPA
packages (in the elpa
subdirectory). So if you are just starting
your configuration, put it in ~/.emacs.d/init.el
, or else move your
existing configuration there.
Finally, all the tips I'll be giving assume Emacs 24. If you haven't upgrade, please consider doing so.
Stay tuned for more tips!
1 comment:
Looking forward to reading more of these! I'm an rather OC when it comes to emacs configurations.
I run emacs *everywhere* (work's Windows machine(s), home linux server, wife's windows laptop, linux in Virtual Box, my Mum's iMac...), but git *doesn't* work everywhere - it's especially a pain on Windows. So in preference to git, I'm using Mercurial hosted at bitbucket.org. Maybe not a hip as git, but at least I can clone it everywhere (except maybe on an Amiga?)
Post a Comment