I'm using Emacs org-mode and when I run M-x org-agenda, the agenda dispatcher menu (the buffer named *Org Agenda Commands* where you select options like "a" for agenda, "t" for TODO list, etc.) opens in a split window.
I want this dispatcher menu to open in the current window instead of splitting.
What I've tried:
;; This controls the agenda view itself, not the dispatcher
(setq org-agenda-window-setup 'current-window)
;; Tried display-buffer-alist
(add-to-list 'display-buffer-alist
'("\\*Org Agenda Commands\\*"
(display-buffer-same-window)))
;; Tried advice
(defun my-org-agenda-same-window (orig-fun &rest args)
"Force org-agenda dispatcher to use current window."
(let ((display-buffer-overriding-action '(display-buffer-same-window)))
(apply orig-fun args)))
(advice-add 'org-agenda :around #'my-org-agenda-same-window)
None of these prevent the dispatcher from splitting the window.
How can I make the org-agenda dispatcher open in the current window without splitting?