Skip to content

Instantly share code, notes, and snippets.

@hlissner
Last active October 3, 2022 13:06
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hlissner/46d6423a49f19d30e34336eb5bc1a07e to your computer and use it in GitHub Desktop.
Save hlissner/46d6423a49f19d30e34336eb5bc1a07e to your computer and use it in GitHub Desktop.
@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

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

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

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

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

@hlissner
Copy link
Author

hlissner commented Oct 3, 2022

@brabalan This should've been fixed in doomemacs/doomemacs@7aa87eb.

@brabalan
Copy link

brabalan commented Oct 3, 2022

I confirm profile loading now works. Thanks!

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