diff --git a/nix3-core.el b/nix3-core.el index 4c1182d..76d69ce 100644 --- a/nix3-core.el +++ b/nix3-core.el @@ -61,6 +61,13 @@ "String used as a separator in `completing-read-multiple'." :type 'string) +(defcustom nix3-compile-in-comint-mode t + "Whether to run `compile' in `comint-mode'. + +If this option is t, background nix processes will be run in +`comint-mode' with `compilation-shell-minor-mode'. See `compile' for details." + :type 'boolean) + ;;;; Variables (defvar nix3-config-cache nil) @@ -99,7 +106,8 @@ This command discard the exit code or output of the command." ;; Use compile for now, but it may be a better way (compile (mapconcat #'shell-quote-argument (cons cmd args) - " "))) + " ") + nix3-compile-in-comint-mode)) (defun nix3-system () "Return the system name of Nix." diff --git a/nix3-flake.el b/nix3-flake.el index 7bfe213..defe7e4 100644 --- a/nix3-flake.el +++ b/nix3-flake.el @@ -1168,7 +1168,8 @@ non-interactively." (concat "nix flake lock " (mapconcat (lambda (name) (format "--update-input %s" name)) - names " ")))))) + names " "))) + nix3-compile-in-comint-mode))) (provide 'nix3-flake) ;;; nix3-flake.el ends here