;; Enable EditorConfig mode
(editorconfig-mode +1)

(provide 'editorconfig-c)

;; Enable EditorConfig mode
(editorconfig-mode +1)

(defun kotct/editorconfig--disable-smart-tabs-if-indent-tabs-mode-disabled (&optional hash)
  "Disables `smart-tabs-mode' if `indent-tabs-mode' is non-truthy."
  (if (not indent-tabs-mode)
      (progn
        (smart-tabs-mode -1))))

(add-hook 'editorconfig-custom-hooks 'kotct/editorconfig--disable-smart-tabs-if-indent-tabs-mode-disabled)

(provide 'editorconfig-c)

Disable Smart Tabs if indent-tabs-mode is disabled by editorconfig
Disable Smart Tabs if indent-tabs-mode is disabled by editorconfig

This new function is run as an EditorConfig custom hook, so it only
takes place in situations where EditorConfig can be loaded.

kotct/dot,kotct/dot