branch: externals/org-modern commit 7ac63f5bb1f644dadfe50fcc267f03c59cd99b67 Author: Daniel Mendler <m...@daniel-mendler.de> Commit: Daniel Mendler <m...@daniel-mendler.de>
Fix variable usage --- org-modern.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/org-modern.el b/org-modern.el index ee97114e3c..2e0cf6f987 100644 --- a/org-modern.el +++ b/org-modern.el @@ -382,7 +382,6 @@ the font.") (defconst org-modern--table-overline '(:overline t)) (defconst org-modern--table-sp '((space :width (org-modern--table-sp-width)) (space :width (org-modern--table-sp-width)))) -(defvar org-indent-mode) (declare-function org-modern-indent-mode "ext:org-modern-indent") (defun org-modern--checkbox () @@ -870,7 +869,7 @@ whole buffer; otherwise, for the line at point." (add-hook 'org-cycle-hook #'org-modern--cycle nil 'local)) (org-modern--update-faces) (org-modern--update-bitmaps) - (when (and org-indent-mode org-modern-block-indent) + (when (and (bound-and-true-p org-indent-mode) org-modern-block-indent) (org-modern-indent-mode 1))) (t (remove-from-invisibility-spec 'org-modern)