branch: scratch/editorconfig-cc
commit 7f7591c3535bb12b7fb3a9fe28f72d57d18877d0
Author: 10sr <[email protected]>
Commit: Stefan Monnier <[email protected]>
Load editorconfig-core explicitly just becore use (#100)
Fix for the case where this plugin is installed with `git clone`.
Additionally, When the core library is not available, it will emit a
more friendly error message like:
Cannot open load file" "no such file or directory" "editorconfig-core"
---
editorconfig.el | 1 +
1 file changed, 1 insertion(+)
diff --git a/editorconfig.el b/editorconfig.el
index 7d3c081db1..2f8de26a2d 100644
--- a/editorconfig.el
+++ b/editorconfig.el
@@ -265,6 +265,7 @@ It calls `editorconfig-get-properties-from-exec' if
`editorconfig-core-get-properties-hash'."
(if (executable-find editorconfig-exec-path)
(editorconfig-get-propergies-from-exec)
+ (require 'editorconfig-core)
(editorconfig-core-get-properties-hash)))
(defun editorconfig-display-current-properties ()