What happened?
Doom does not load my profiles. This post describes a minimal profile for the sake of simplicity, but none of my more complex profiles get loaded either.
When I run emacs --profile sandbox
, the (message)
call is not evaluated.
What did you expect to happen?
Doom should load any of the defined profiles.
Steps to reproduce
- Create a
~/.config/emacs-sandbox/init.el
file containing only(message "This is my sample Emacs profile.")
. - Create a
~/.config/doom/profiles.el
file which contains:
((sandbox
(user-emacs-directory . "~/.config/emacs-sandbox/")))
- Run
doom sync && doom profiles sync
. - Run
emacs --profile sandbox
. -
"This is my sample Emacs profile."
does not appear in the*Messages*
buffer.
Output of emacs --profile sandbox --debug-init
:
Loading /home/ev/.config/emacs/profiles/load.28.elc...
Loading /home/ev/.config/emacs/profiles/load.28.elc...done
Contents of ~/.config/emacs/profiles/load.el
:
;; -*- lexical-binding: t; tab-width: 8; -*-
;; Updated: 2022-10-02 15:18:42
;; Generated by 'doom profiles sync' or 'doom sync'.
;; DO NOT EDIT THIS BY HAND!
"3.0.0-pre"
(pcase
(intern
(getenv-internal "DOOMPROFILE"))
('sandbox
(let nil
(setq user-emacs-directory '"~/.config/emacs-sandbox/")))
('safe-mode
(let nil
(setq user-emacs-directory
(expand-file-name "safe-mode/"
(expand-file-name "~/.config/emacs/profiles" user-emacs-directory))))))
System information
Loading data dump...
Thanks!