           (t . ,(cond (IS-MAC "open -R \"%s\"")
                       (IS-LINUX "xdg-open \"%s\"")))))
 
-  ;; Remove highlights on ESC
   (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))


(defun +org|hook ()
  "Run everytime `org-mode' is enabled."
  (setq line-spacing 1)
  (doom|disable-line-numbers)

  ;; show-paren-mode causes problems for org-indent-mode
  (make-local-variable 'show-paren-mode)
  (setq show-paren-mode nil)

  (unless org-agenda-inhibit-startup
    ;; My version of the 'overview' #+STARTUP option: expand first-level
    ;; headings.
    (when (eq org-startup-folded t)
      (outline-hide-sublevels 2))


    :lighter " !"
    :keymap (make-sparse-keymap)
    :group 'evil-org)

  (+org-init-ui)
  (+org-init-keybinds)
