Emacs Multi Config

Splitting up work by a profile

Summary

By far the best experience to experimenting with multiple configs of Emacs is Chemacs 2. The project is located at https://github.com/plexus/chemacs2 and has a wonderful write up on how to use it.

The sell

The short summary is that, once configured, you can run emacs with a default profile or use the following

emacs --with-profile my-profile

and you launch emacs with the profile of your choice! This was great for me trying out the Doom package manager when my main goto was using Spacemacs. If you happen to be in the same boat as me and are using Spacemacs there is a whole section dedicated for Spacemacs users in the documentation. And a whole other section section dedicated just for Doom users.

How I use it

I know its plain simple, but here is my ~/.emacs-profile.el contents.

(("default" . ((user-emacs-directory . "~/.emacs-installs/.emacs.default")))
 ("doom" . ((user-emacs-directory . "~/.emacs-installs/doom-emacs")
           ))
)

Future

Once I got the hang of using Doom over Spacemacs, I sort of stopped using Chemacs 2, but will probably use it the future if I have to install a new version of Doom or experiment. I think this also lends to testing packages for Emacs as well as switching settings for personal vs focused work (professional projects, etc…).

Aaron Addleman
Aaron Addleman
Principal Automation Engineer

Fun with programming and infrastructure