When booting latest chemacs locally, the .emacs-profile parsing would return a void symbol error. I am fairly new to Lisp and could not 100% figure out why setq would not work, but switching it to a function made things work perfectly well.
Changes
Swap out the setq expressions for defvar expressions instead. This eliminates the free variable assignment warnings.
Moved chemacs-default-profile variable to chemacs-detect-default-profile function. The new name makes it a little more obvious, to me at least, that its a calculated default rather than a static value.
Background
When booting latest chemacs locally, the .emacs-profile parsing would return a void symbol error. I am fairly new to Lisp and could not 100% figure out why setq would not work, but switching it to a function made things work perfectly well.
Changes
setq
expressions fordefvar
expressions instead. This eliminates the free variable assignment warnings.chemacs-default-profile
variable tochemacs-detect-default-profile
function. The new name makes it a little more obvious, to me at least, that its a calculated default rather than a static value.