summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeon <gh@leonrische.me>2020-06-26 14:15:48 +0200
committerGitHub <noreply@github.com>2020-06-26 14:15:48 +0200
commitd20bbc99d2925503f2ec3395bdf77daa403e0c4f (patch)
treeac3ee918c98bd04505e8ae3d7977de8d026a3e00
parent6d6d2c9e27ad8493255280b817b671b022f100ef (diff)
parent90554a8d207059a91605e0bfcba97c1f902249b3 (diff)
Merge pull request #33 from natask/master
Added automated unfolding for whitelisted drawers.
-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