mirror of
https://github.com/doomemacs/doomemacs
synced 2025-09-26 16:41:04 -05:00
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:
@@ -39,4 +39,7 @@ specified by editorconfig."
|
||||
"A tab-width != 8 is an error state in org-mode, so prevent changing it."
|
||||
(when (and (gethash 'indent_size props)
|
||||
(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))))))
|
||||
|
Reference in New Issue
Block a user