all repos — nixfiles @ 7cbe8257a61d6bedb942d0fd15ad7aa018447012

System and user configuration, managed by nix and home-manager

Emacs: Load flycheck-vale only if vale is executable
Alan Pearce alan@alanpearce.eu
Sun, 04 Jun 2017 15:52:46 +0200
commit

7cbe8257a61d6bedb942d0fd15ad7aa018447012

parent

6eaab8ee32bae08831da5040d1f0bf13e815ce65

1 files changed, 1 insertions(+), 0 deletions(-)

jump to
M emacs/.emacs.d/init.orgemacs/.emacs.d/init.org
@@ -2388,6 +2388,7 @@ [[https://github.com/ValeLint/vale][Vale]] is a linter, but for prose.  Neat idea!  Salesman is a bad term. 
 #+BEGIN_SRC emacs-lisp
 (use-package flycheck-vale
+  :if (executable-find "vale")
   :config (progn
             (add-to-list 'flycheck-vale-modes 'org-mode)
             (flycheck-vale-setup)))