       (add-hook 'org-agenda-finalize-hook #'doom-hide-modeline-mode)
       ;; Don't monopolize frame!
       (advice-add #'org-agenda :around #'doom*suppress-delete-other-windows)
-
+      ;; ensure quit keybindings work propertly
       (map! :map org-agenda-mode-map
             :m [escape] 'org-agenda-Quit
             :m "ESC"    'org-agenda-Quit)

      '("^\\*Org-Babel"      :regexp t :size 25 :noselect t)
      '("^CAPTURE.*\\.org$"  :regexp t :size 20))

    ;; Org has its own window management system with a scorched earth philosophy
    ;; I'm not fond of. i.e. it kills all windows and monopolizes the frame. No
    ;; thanks. We can do better with shackle's help.
    (defun doom*suppress-delete-other-windows (orig-fn &rest args)
      (cl-letf (((symbol-function 'delete-other-windows)
                 (symbol-function 'ignore)))

    (advice-add #'org-capture-place-template :around #'doom*suppress-delete-other-windows)
    (advice-add #'org-export--dispatch-ui :around #'doom*suppress-delete-other-windows)

    ;; Hand off the src-block window to a shackle popup window.
    (defun doom*org-src-pop-to-buffer (buffer _context)
      "Open the src-edit in a way that shackle can detect."
      (if (eq org-src-window-setup 'switch-invisibly)
          (set-buffer buffer)
        (pop-to-buffer buffer)))
    (advice-add #'org-src-switch-to-buffer :override #'doom*org-src-pop-to-buffer)

    ;; Ensure todo, agenda, and other minor popups are delegated to shackle.
    (defun doom*org-pop-to-buffer (&rest args)
      "Use `pop-to-buffer' instead of `switch-to-buffer' to open buffer.'"
      (let ((buf (car args)))
        (pop-to-buffer
         (cond ((stringp buf) (get-buffer-create buf))
