Refactor +evil-esc-hook

This commit is contained in:
Henrik Lissner 2017-05-25 12:22:05 +02:00
parent 5d47be15ef
commit 85751c519b
5 changed files with 36 additions and 37 deletions

View file

@ -381,7 +381,8 @@
;; Remove highlights on ESC
(defun +org|remove-occur-highlights (&rest args)
(when (derived-mode-p 'org-mode)
(org-remove-occur-highlights)))
(org-remove-occur-highlights)
t))
(add-hook '+evil-esc-hook #'+org|remove-occur-highlights)
(after! org-bullets