mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-01 12:17:25 -05:00
TAB should respect org-cycle-open-archived-trees
And shouldn't cycle visibility of archived trees by default.
This commit is contained in:
@ -395,13 +395,15 @@ with `org-cycle')."
|
|||||||
(unless (eq this-command 'org-shifttab)
|
(unless (eq this-command 'org-shifttab)
|
||||||
(save-excursion
|
(save-excursion
|
||||||
(org-beginning-of-line)
|
(org-beginning-of-line)
|
||||||
(when (org-at-heading-p)
|
(when (and (org-at-heading-p)
|
||||||
(when (or (not arg)
|
(or org-cycle-open-archived-trees
|
||||||
(outline-invisible-p (line-end-position)))
|
(not (member org-archive-tag (org-get-tags))))
|
||||||
|
(or (not arg)
|
||||||
|
(outline-invisible-p (line-end-position))))
|
||||||
(outline-toggle-children)
|
(outline-toggle-children)
|
||||||
(unless (outline-invisible-p (line-end-position))
|
(unless (outline-invisible-p (line-end-position))
|
||||||
(org-cycle-hide-drawers 'subtree))
|
(org-cycle-hide-drawers 'subtree))
|
||||||
t)))))
|
t))))
|
||||||
|
|
||||||
;;;###autoload
|
;;;###autoload
|
||||||
(defun +org|remove-occur-highlights ()
|
(defun +org|remove-occur-highlights ()
|
||||||
|
Reference in New Issue
Block a user