Pass profile name as env var, not argument
Fixes `emacs --batch`: Doom does not process the --profile argument when non-interactive, causing Emacs to complain about the unrecognized option.
This commit is contained in:
parent
9e9c822ec2
commit
7d4248f310
1 changed files with 2 additions and 1 deletions
3
doom.nix
3
doom.nix
|
|
@ -305,8 +305,9 @@ let
|
|||
''
|
||||
makeWrapper ${emacsWithPackages}/bin/emacs $out/bin/${binaryName} \
|
||||
--set DOOMPROFILELOADFILE ${doomProfile}/loader/init.el \
|
||||
--set DOOMPROFILE ${profileName} \
|
||||
--set-default DOOMLOCALDIR "${doomLocalDir}" \
|
||||
--add-flags "--init-directory=${doomSource} --profile ${profileName}"
|
||||
--add-flags "--init-directory=${doomSource}"
|
||||
'';
|
||||
|
||||
in
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue