Follow

tip: nicer behaviour in agenda when you hit RET:

(define-advice org-agenda-switch-to
(:around (fn &rest args) in-other-window)
"Show the buffer in a bottom side window and switch to it."
(let (buf ret)
(setq buf (save-window-excursion
(setq ret (apply fn args))
(message (buffer-name))
(current-buffer)))
(display-buffer-in-side-window buf '((side . bottom)))
(select-window (get-buffer-window buf))
ret))

When you hit RET on an item in the agenda, the item opens in a popup buffer or replaces the current one. With this advice, it shows up in a side window and gets focused to.

Sign in to participate in the conversation
Mastodon @ SDF

"I appreciate SDF but it's a general-purpose server and the name doesn't make it obvious that it's about art." - Eugen Rochko