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)