lang/org: minor refactor of +org|remove-occur-highlights ESC hook
This commit is contained in:
parent
4a32213b38
commit
85e443cca1
1 changed files with 3 additions and 3 deletions
|
@ -229,9 +229,9 @@ unfold to point on startup."
|
||||||
between the two."
|
between the two."
|
||||||
(defun +org|remove-occur-highlights ()
|
(defun +org|remove-occur-highlights ()
|
||||||
"Remove org occur highlights on ESC in normal mode."
|
"Remove org occur highlights on ESC in normal mode."
|
||||||
(when (and (derived-mode-p 'org-mode)
|
(when org-occur-highlights
|
||||||
org-occur-highlights)
|
(org-remove-occur-highlights)
|
||||||
(org-remove-occur-highlights)))
|
t))
|
||||||
(add-hook 'doom-escape-hook #'+org|remove-occur-highlights)
|
(add-hook 'doom-escape-hook #'+org|remove-occur-highlights)
|
||||||
|
|
||||||
;; C-a & C-e act like `doom/backward-to-bol-or-indent' and
|
;; C-a & C-e act like `doom/backward-to-bol-or-indent' and
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue