[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Allow org-agenda-switch-to to restore the previous window configurat
From: |
Ihor Radchenko |
Subject: |
Re: Allow org-agenda-switch-to to restore the previous window configuration |
Date: |
Wed, 29 Mar 2023 13:44:41 +0000 |
"Marvin J." <silbersplitter@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>