mirror of
https://github.com/doomemacs/doomemacs.git
synced 2025-12-06 02:30:33 -08: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:
parent
395a058d7d
commit
1b6b8c5fde
1 changed files with 4 additions and 1 deletions
|
|
@ -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))))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue