aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--modules/init-editorconfig.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/modules/init-editorconfig.el b/modules/init-editorconfig.el
index 614dcce..c8466b8 100644
--- a/modules/init-editorconfig.el
+++ b/modules/init-editorconfig.el
@@ -8,7 +8,9 @@
;;----------------------------------------------------------------------------
(use-package editorconfig
:config
- (editorconfig-mode 1))
+ (when (and (require 'editorconfig nil t)
+ (fboundp 'editorconfig-mode))
+ (editorconfig-mode 1)))
(provide 'init-editorconfig)