fix(editorconfig): only set tab-width in old org-mode

Upstream now more aggressively ensures tab-width is 8, so this hook only
exists for users on older versions.

Ref: emacs-straight/org-mode@0dc647ff54
This commit is contained in:
Henrik Lissner
2025-09-24 14:26:14 -04:00
parent 395a058d7d
commit 1b6b8c5fde

View File

@@ -39,4 +39,7 @@ specified by editorconfig."
"A tab-width != 8 is an error state in org-mode, so prevent changing it." "A tab-width != 8 is an error state in org-mode, so prevent changing it."
(when (and (gethash 'indent_size props) (when (and (gethash 'indent_size props)
(derived-mode-p 'org-mode)) (derived-mode-p 'org-mode))
(setq tab-width 8))))) ;; REVIEW: Org already does this in recent versions, so this is
;; preserved only for users pinning to older versions.
(unless (fboundp 'org--set-tab-width)
(setq tab-width 8))))))