From ce17ecd2399f3918566bc9fd54300ed132c1b580 Mon Sep 17 00:00:00 2001 From: Henrik Lissner Date: Sat, 30 Sep 2017 16:34:24 +0200 Subject: [PATCH] Fix ESC not closing popups from org-mode --- modules/org/org/config.el | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/org/org/config.el b/modules/org/org/config.el index 0adc8f6d4..50f27ec8d 100644 --- a/modules/org/org/config.el +++ b/modules/org/org/config.el @@ -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