fix(org-modern): :custom for early var setup + disable org-indent-mode conflict

This commit is contained in:
2026-02-23 19:46:28 +01:00
parent 25f7dc72ea
commit 7ba45682dc

View File

@@ -261,7 +261,8 @@ Bound to cmd+v in org-mode and markdown-mode."
(lambda (_backend) (org-update-all-dblocks))) (lambda (_backend) (org-update-all-dblocks)))
;; Visual: hide markup, pretty entities, compact tags ;; Visual: hide markup, pretty entities, compact tags
(setq org-hide-emphasis-markers t (setq org-startup-indented nil ; disable org-indent-mode -- conflicts with org-modern star display
org-hide-emphasis-markers t
org-pretty-entities t org-pretty-entities t
org-ellipsis "" org-ellipsis ""
org-auto-align-tags nil org-auto-align-tags nil
@@ -1141,16 +1142,15 @@ Otherwise: runs interactive ement-connect, then opens rooms after sync."
;;; ============================================================ ;;; ============================================================
;;; Org-modern -- modern visual style for org-mode ;;; Org-modern -- modern visual style for org-mode
;; :hook triggers lazy loading via use-package!/straight.el (critical for load-path). ;; :custom sets vars before first activation (unlike :config which runs after).
;; org-modern-table nil: table overlays can conflict with LaTeX export. ;; org-modern-table nil: avoids LaTeX export conflicts.
;; org-agenda-finalize-hook: apply modern style to agenda buffers too.
(use-package! org-modern (use-package! org-modern
:hook (org-mode . org-modern-mode) :hook (org-mode . org-modern-mode)
:hook (org-agenda-finalize . org-modern-agenda) :hook (org-agenda-finalize . org-modern-agenda)
:config :custom
(setq org-modern-star '("" "" "" "") (org-modern-star '("" "" "" ""))
org-modern-table nil (org-modern-table nil)
org-modern-checkbox t)) (org-modern-checkbox t))
;;; ============================================================ ;;; ============================================================