Forcing no to all questions doom install would ask

Newer doom versions (after 873fc5c0db4876d9e1f347fa6cbd2a3a1933df69) has
a rewritten cli interface. I could not figure out how to pass `--no-env`
and `--no-fonts` (should check later if it is a bug in doom)
This commit is contained in:
László Vaskó
2019-11-10 17:03:33 +01:00
parent bdbf14a95b
commit 8e36b53b3e
2 changed files with 6 additions and 2 deletions

View File

@ -9,3 +9,8 @@
:around (lambda (orig-print &rest r)
(let ((noninteractive nil))
(apply orig-print r))))))
(advice-add 'y-or-n-p
:override (lambda (q)
(message "%s \n--> answering NO" q)
nil))

View File

@ -87,9 +87,8 @@ let
emacsPackages.overrideScope' overrides;
emacsLoadFiles = [ ./advice.el ];
emacsArgs = [
"--"
"install"
"--no-fonts"
"--no-env"
];
# Need to reference a store path here, as byte-compilation will bake-in