Archived
1
0
Fork 0

setup origami to use tab to toggle folded or not on org-agenda ; tweak super agenda origami tie in to fix off by one bug

This commit is contained in:
KemoNine 2023-02-13 12:47:11 -05:00
parent b7287c50f8
commit 52b5951323

View file

@ -188,9 +188,15 @@
(forward-line 3)
(--each ap/org-super-agenda-auto-hide-groups
(goto-char (point-min))
(cl-loop do (origami-close-node (current-buffer) (point))
while (re-search-forward (rx-to-string `(seq bol " " ,it)) nil t))))
(cl-loop
while (re-search-forward (rx-to-string `(seq bol " " ,it)) nil t)
do (origami-close-node (current-buffer) (point))
)
)
)
(add-hook 'org-agenda-mode-hook #'origami-mode)
(add-hook 'org-agenda-finalize-hook #'ap/org-super-agenda-origami-fold-default)
(define-key org-super-agenda-header-map (kbd "<tab>") #'origami-toggle-node)
(define-key org-agenda-mode-map (kbd "<tab>") #'origami-toggle-node)