OK, I’ve got my .emacs set up to switch between a .emacs23 and a .emacs24 file depending on which version of Emacs I start up. Now I need an actual .emacs24 config file.

I want to keep all of my configuration together in a single directory under revision control, so I create a .emacs24.d directory, put it under Git control, and push it to Github:

I’m using the very handy “hub” tool to easily create a new repo on Github. I’m also using the “-u” flag to “git push” in order to remember the link from the local master branch to the remote master branch.

Then I create an empty ~/.emacs24.d/init.el which will serve as the main initialization file. Once that is in place, I edit my .emacs to load the new init file when Emacs 24 starts up:

There. Now I’m all set to start iterating on a brand-new Emacs 24 configuration, using Git to keep it synchronized across my machines.

EDIT: Here’s the repo: https://github.com/avdi/.emacs24.d

Published by Avdi Grimm

Leave a Reply

Your email address will not be published. Required fields are marked *