From f3fa1b03243705e7d2348684729a22a7229a00b4 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Fri, 12 Jul 2019 16:38:30 +0200 Subject: [PATCH] Fix editorconfig usage in doom/set-indent-width #1561 --- core/autoload/text.el | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/core/autoload/text.el b/core/autoload/text.el index 7e791b4d2..d2baa4f62 100644 --- a/core/autoload/text.el +++ b/core/autoload/text.el @@ -181,9 +181,7 @@ Respects `require-final-newline'." (when (boundp 'evil-shift-width) (setq evil-shift-width width)) (cond ((require 'editorconfig nil t) - (dolist (var (cdr (assq major-mode editorconfig-indentation-alist))) - (doom-log "Updated %s = %d" var width) - (set var width))) + (editorconfig-set-indentation nil width)) ((require 'dtrt-indent nil t) (when-let (var (nth 2 (assq major-mode dtrt-indent-hook-mapping-list))) (doom-log "Updated %s = %d" var width)