Skip to content

Instantly share code, notes, and snippets.

@hlissner
Last active Sep 26, 2022
Embed
What would you like to do?
@kepi
Copy link

kepi commented Aug 3, 2022

Hi,

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.

@hlissner
Copy link
Author

hlissner commented Aug 3, 2022

@kepl You named the profile doom, but you're trying to launch it with 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?

@kepi
Copy link

kepi commented Aug 3, 2022

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).

@brabalan
Copy link

brabalan commented Sep 19, 2022

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.

@brabalan
Copy link

brabalan commented Sep 19, 2022

With the following profiles.el (if I put back the dot, doom profiles sync fails

((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.

@hlissner
Copy link
Author

hlissner commented Sep 25, 2022

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.

@brabalan
Copy link

brabalan commented Sep 26, 2022

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).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment