From 8e36b53b3e7a40fcb854c18e9146291cfd262a4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20Vask=C3=B3?= Date: Sun, 10 Nov 2019 17:03:33 +0100 Subject: [PATCH] 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) --- advice.el | 5 +++++ default.nix | 3 +-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/advice.el b/advice.el index c2ab043..22ac20f 100644 --- a/advice.el +++ b/advice.el @@ -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)) diff --git a/default.nix b/default.nix index 0817cce..bd19ea4 100644 --- a/default.nix +++ b/default.nix @@ -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