From 8ed5ea56d92db6b20e3b4918b1e29132921ef4f1 Mon Sep 17 00:00:00 2001 From: Patrick Elliott Date: Mon, 16 Jul 2018 17:13:53 +0200 Subject: [PATCH] Added doctor check for nixfmt --- modules/lang/nix/doctor.el | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 modules/lang/nix/doctor.el diff --git a/modules/lang/nix/doctor.el b/modules/lang/nix/doctor.el new file mode 100644 index 000000000..440ef31b0 --- /dev/null +++ b/modules/lang/nix/doctor.el @@ -0,0 +1,6 @@ +;; -*- 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")) +