From 1946c3d8a20e85ee2070f18897e402389b46f1db Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Thu, 27 Apr 2017 14:24:20 -0400 Subject: [PATCH] lang/org: fontify checked-checkbox items with org-headline-done --- modules/lang/org/config.el | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/modules/lang/org/config.el b/modules/lang/org/config.el index 794908af9..bfd84b9bb 100644 --- a/modules/lang/org/config.el +++ b/modules/lang/org/config.el @@ -49,12 +49,18 @@ (visual-line-mode +1) (setq line-spacing 1) - ;; If saveplace places the point in a folded position, unfold it on load - (when (outline-invisible-p) - (ignore-errors - (save-excursion - (outline-previous-visible-heading 1) - (org-show-subtree)))) + (unless org-agenda-inhibit-startup + ;; My version of the 'overview' #+STARTUP option: expand first-level + ;; headings. + (when (eq org-startup-folded t) + (outline-hide-sublevels 2)) + + ;; If saveplace places the point in a folded position, unfold it on load + (when (outline-invisible-p) + (ignore-errors + (save-excursion + (outline-previous-visible-heading 1) + (org-show-subtree))))) ;; auto-align tables (defun +org|realign-table-maybe ()