summaryrefslogtreecommitdiff
path: root/org-fc.el
diff options
context:
space:
mode:
authornatask 2 <39103342+natask@users.noreply.github.com>2020-06-26 04:13:41 -0700
committernatask 2 <39103342+natask@users.noreply.github.com>2020-06-26 04:13:41 -0700
commit90554a8d207059a91605e0bfcba97c1f902249b3 (patch)
treeac3ee918c98bd04505e8ae3d7977de8d026a3e00 /org-fc.el
parent6d6d2c9e27ad8493255280b817b671b022f100ef (diff)
Added automated unfolding for whitelisted drawers.
Diffstat (limited to 'org-fc.el')
-rw-r--r--org-fc.el5
1 files changed, 3 insertions, 2 deletions
diff --git a/org-fc.el b/org-fc.el
index 726009d..8dae989 100644
--- a/org-fc.el
+++ b/org-fc.el
@@ -1027,8 +1027,9 @@ FACE can be used to set the text face of the overlay."
(if (re-search-forward ":END:" nil t)
(setq end (point))
(error "No :END: found for drawer"))
- (unless (member name org-fc-drawer-whitelist)
- (org-fc-hide-region start end))))))
+ (if (member name org-fc-drawer-whitelist)
+ (org-flag-drawer nil nil start end)
+ (org-fc-hide-region start end))))))
;;;; Hiding Headings / Section Contents