diff options
author | Leon Rische <leon.rische@me.com> | 2020-06-25 18:02:41 +0200 |
---|---|---|
committer | Leon Rische <leon.rische@me.com> | 2020-06-25 18:02:41 +0200 |
commit | ee020753838a6b386f800e5ff8eb0ecb166dc461 (patch) | |
tree | 91a1f9d42292e47314b501eac89427998a0d31fb /org-fc.el | |
parent | 07509fde3fa7018f53da838f66a04138e4308578 (diff) |
Hide keyword timestamps during review
Diffstat (limited to 'org-fc.el')
-rw-r--r-- | org-fc.el | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -1009,6 +1009,14 @@ FACE can be used to set the text face of the overlay." ;;;; Hiding Drawers +(defun org-fc-hide-keyword-times () + "Hide all timestamp keywords (e.g. DEADLINE) after point." + (save-excursion + (while (re-search-forward org-keyword-time-regexp nil t) + (let ((start (1- (match-beginning 0))) + (end (match-end 0))) + (org-fc-hide-region start end))))) + (defun org-fc-hide-drawers () "Hide all drawers except ones in `org-fc-drawer-whitelist' after point." (save-excursion @@ -1773,6 +1781,7 @@ Valid contexts: ;; Make sure the headline the card is in is expanded (org-reveal) (org-fc-narrow-tree) + (org-fc-hide-keyword-times) (org-fc-hide-drawers) (org-fc-show-latex) (org-display-inline-images) |