plexus / chemacs2

Emacs version switcher, improved
779 stars 47 forks source link

Enable the loading a profile via CLI #13

Closed ghost closed 3 years ago

ghost commented 3 years ago

Currently a profile must first be specified in ~/.emacs-profiles.el in order to be used. In most day-to-day usage this is adequate, but on occasion it is nice to have a 'throw-away' profile. The rationale for such a profile is trying someone else's config out for a day / hour or some such, but it's not something you're committed to.

This change enables the following to work:

emacs --with-profile '((user-emacs-directory . "/tmp/throw-away-config"))'

I originally was going to add this to version 1, but was asked to add it to version 2, so here we are (original PR I opened)

plexus commented 3 years ago

Looks good! Thanks!

plexus commented 3 years ago

the-big-lebowski-dancing-o

ghost commented 3 years ago

Thanks!