From 323b9b6e0190498bec58f5b7de4aaafdd0b29bef Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs?= Date: Tue, 22 Jan 2019 18:31:00 -0500 Subject: [PATCH] =?UTF-8?q?Fix=20the=20function=20=E2=80=98editorconfig-mo?= =?UTF-8?q?de=E2=80=99=20is=20not=20known=20to=20be=20defined?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit FS #2 --- modules/init-editorconfig.el | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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)