From bd5d305e06408413b567171732d1f1d09b90a796 Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Tue, 17 Jul 2018 10:03:17 +0200 Subject: [PATCH] Added doc check for nix package manager --- modules/lang/nix/doctor.el | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/modules/lang/nix/doctor.el b/modules/lang/nix/doctor.el index 440ef31b0..93f4de0c3 100644 --- a/modules/lang/nix/doctor.el +++ b/modules/lang/nix/doctor.el @@ -1,6 +1,9 @@ ;; -*- lexical-binding: t; no-byte-compile: t; -*- ;;; lang/nix/doctor.el -(unless (executable-find "nixfmt") - (warn! "Couldn't find nixfmt. nix-format-buffer won't work")) +(unless (executable-find "nix") + (warn! "Couldn't find the nix package manager. nix-mode won't work.")) + +(unless (executable-find "nixfmt") + (warn! "Couldn't find nixfmt. nix-format-buffer won't work."))