summary refs log tree commit diff stats
path: root/emacs
diff options
context:
space:
mode:
authorAlan Pearce2017-09-22 12:43:29 +0200
committerAlan Pearce2017-09-22 12:43:29 +0200
commita129355e81814b068993fca2fc8dc71e7501b3dc (patch)
tree97bb2e3e4474a35c4ffa3d0c4a9fafa07d8e0df0 /emacs
parent317cc0e7a0cbef0df499f05b38e4d7e9dc47bc32 (diff)
downloadnixfiles-a129355e81814b068993fca2fc8dc71e7501b3dc.tar.lz
nixfiles-a129355e81814b068993fca2fc8dc71e7501b3dc.tar.zst
nixfiles-a129355e81814b068993fca2fc8dc71e7501b3dc.zip
Emacs: Complain more when editorconfig is missing
Diffstat (limited to 'emacs')
-rw-r--r--emacs/.emacs.d/main.el5
1 files changed, 4 insertions, 1 deletions
diff --git a/emacs/.emacs.d/main.el b/emacs/.emacs.d/main.el
index b749a106..5e5c06f3 100644
--- a/emacs/.emacs.d/main.el
+++ b/emacs/.emacs.d/main.el
@@ -880,7 +880,10 @@
 
 ;; #+BEGIN_SRC emacs-lisp
 (use-package editorconfig
-  :diminish "EC"
+  :diminish editorconfig-mode
+  :init (progn
+          (unless (executable-find "editorconfig")
+            (warn "Missing `editorconfig' executable.")))
   :config (editorconfig-mode 1))
 ;; #+END_SRC