mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-03 12:27:26 -05:00
lang/org: org-highlight-sparse-tree-matches = nil
Helps sparse tree + org-indent-mode cooperate.
This commit is contained in:
@ -433,6 +433,11 @@ file isn't in `org-directory'."
|
|||||||
;; Open directory links in Emacs
|
;; Open directory links in Emacs
|
||||||
(add-to-list 'org-file-apps '(directory . emacs))
|
(add-to-list 'org-file-apps '(directory . emacs))
|
||||||
|
|
||||||
|
;; When you create a sparse tree and `org-indent-mode' is enabled, the
|
||||||
|
;; highlighting destroys the invisibility added by `org-indent-mode'.
|
||||||
|
;; Therefore, don't highlight when creating a sparse tree.
|
||||||
|
(setq org-highlight-sparse-tree-matches nil)
|
||||||
|
|
||||||
(add-hook 'org-follow-link-hook
|
(add-hook 'org-follow-link-hook
|
||||||
(defun +org-delayed-recenter-h ()
|
(defun +org-delayed-recenter-h ()
|
||||||
"`recenter', but after a tiny delay. Necessary to prevent certain race
|
"`recenter', but after a tiny delay. Necessary to prevent certain race
|
||||||
|
Reference in New Issue
Block a user