"Marvin J." <silbersplit...@googlemail.com> writes:

> Org-agenda provides the possibility to automatically restore the previous
> window configuration after closing the agenda buffer using org-agenda-quit
> (bound to q). This is achieved by setting
> org-agenda-restore-windows-after-quit to t.
>
> However, there is also another way to "exit" the agenda, namely by calling
> org-agenda-switch-to (bound to RET) on an appropriate item. However, this
> command currently does not take the previous window configuration into
> account.

> I thus propose adding a new variable named e.g.
> org-agenda-restore-windows-after-switch that controls whether the command
> org-agenda-switch-to will restore the previous window configuration before
> switching to the Org mode file of the item at point.

Note that you can still achieve what you want using 
`org-agenda-after-show-hook'.

-- 
Ihor Radchenko // yantar92,
Org mode contributor,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to