Fix ESC not closing popups from org-mode

This commit is contained in:
Henrik Lissner 2017-09-30 16:34:24 +02:00
parent b7ca13f45d
commit ce17ecd239
No known key found for this signature in database
GPG Key ID: 5F6C0EA160557395

View File

@ -219,9 +219,9 @@ between the two."
(defun +org|remove-occur-highlights ()
"Remove org occur highlights on ESC in normal mode."
(when (derived-mode-p 'org-mode)
(org-remove-occur-highlights)
t))
(when (and (derived-mode-p 'org-mode)
org-occur-highlights)
(org-remove-occur-highlights)))
(add-hook '+evil-esc-hook #'+org|remove-occur-highlights)
(after! recentf