plexus / chemacs

Emacs profile switcher
652 stars 45 forks source link

Allow selection of default profile using a file #7

Closed lazyatom closed 5 years ago

lazyatom commented 5 years ago

For GUI versions of emacs, it's not possible to start them with a --with-profile flag. In these cases, it's helpful to be able to control which profile is loaded using something in the filesystem. This change allows switching of the default profile using the contents of a ~/.emacs-profile file, which should contain the string of the profile to be used (e.g. "spacemacs" or "doom" or "default").

If the file is not present, "default" will be used as before.

plexus commented 5 years ago

Thanks for the patch. Would you mind documenting this feature in the README? thanks!

lazyatom commented 5 years ago

Done! :smile: