Instantly share code, notes, and snippets.
This guide was moved to https://github.com/doomemacs/doomemacs/tree/master/profiles
switching from Chemacs2, I followed everything in relevant part but no luck so far:
❯ cat .config/emacs/profiles.el
((doom . ((user-emacs-directory . "~/.emacses/doom/emacs.d")
(env . (("DOOMDIR" . "~/.config/doom")))))
(spacemacs . ((user-emacs-directory . "~/.emacses/spacemacs/emacs.d")
(env . (("SPACEMACSDIR" . "~/.emacses/spacemacs/spacemacs.d")))))
(devmacs . ((user-emacs-directory . "~/.emacses/devmacs/emacs.d")
(env . (("SPACEMACSDIR" . "~/.emacses/devmacs/spacemacs.d"))))))
emacs --profile doom
Warning (initialization): An error occurred while loading ‘/home/kepi/.config/emacs/early-init.el’:
: No "doom" profile found
~/.config/emacs/bin/doom sync -profile doom is working.
~/.config/emacs/bin/doom sync -profile doom
Sorry, something went wrong.
@kepl You named the profile doom, but you're trying to launch it with emacs profile doom-emacs.
emacs profile doom-emacs
EDIT: But the error message suggests you did emacs --profile doom, so I'll assume it's a typo. I just tried your exact doom profile and it seems to work as expected. What commit of Doom are you on?
Yeah, just a typo, it is ok in my configuration. At one moment I was afraid that dash in name is making problem, so I changed it to doom to be sure.
Anyway I'm on master. First try was I believe yesterday or day before when I discovered this gist with fresh clone to ~/.config/emacs. I just assumed it is WIP and reverted to chemacs. Today I tried again but getting same result.
Important thing I forgot - I'm on Emacs 29 (git version from Arch linux). I know there is no official support, so if it might be the reason, just let me know and I'll survive with chemacs2 for now (only problem so far is I'm getting errors when using literate reload).
I’m trying this and there is an inconsistency in the doc. It seems you should not have a "." between the symbol denoting the profile and its configuration.
With the following profiles.el (if I put back the dot, doom profiles sync fails
doom profiles sync
((plain (user-emacs-directory . "~/.emacs-configs/plain")))
I get the following error when loading:
Warning (initialization): An error occurred while loading ‘/home/schmitta/.emacs-configs/plain/early-init’:
Wrong type argument: stringp, nil
There is no early-init in this emacs configuration.
The same happens if I try to load safe-mode.
I've moved the guide to https://github.com/doomemacs/doomemacs/tree/master/profiles
@brabalan I've pushed a few commits in the past 4 days to address the stringp error issue. Please update and try again.
I confirm I no longer have an error. However, the init.el of my profile is not loaded (I tried doing a doom sync --profile plain before and it did not change anything).
doom sync --profile plain