lang/org: org-highlight-sparse-tree-matches = nil

Helps sparse tree + org-indent-mode cooperate.
This commit is contained in:
Henrik Lissner 2019-07-22 00:36:17 +02:00
parent ecb43f1a2b
commit 74f7c58ef1
No known key found for this signature in database
GPG key ID: 5F6C0EA160557395

View file

@ -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