1

If I have an org file open:

 +----------------------------------------+
 |                                        |
 |                                        |
 |                                        |
 |                org file                |
 |                                        |
 |                                        |
 |                                        |
 |                                        |
 |                                        |
 |                                        |
 +----------------------------------------+

And open the Agenda view:

 +----------------------------------------+
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |    org file      |       agenda        |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 +------------------+---------------------+

And then hit TAB on a todo item, it does (org-agenda-goto) and jumps to the item in the original window:

 +----------------------------------------+
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |    org file      |       agenda        |
 |    jumped to     |                     |
 |    item          |                     |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 +------------------+---------------------+

Which is great. If I do (org-agenda-tree-to-indirect-buffer), however, it opens in a teeny window below the agenda:

 +----------------------------------------+
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |    org file      |       agenda        |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |                  +---------------------+
 |                  |     org item i.b.   |
 +------------------+---------------------+

What I'd like to happen is:

 +----------------------------------------+
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |    org item i.b. |       agenda        |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 |                  |                     |
 +------------------+---------------------+

I could do this by just typing TAB , s b, which isn't so bad, but out of general interest I'm wondering how do I control the placement of the new window that org-agenda-tree-to-indirect-buffer creates?

  • If you set org-indirect-buffer-display to 'current-window, does that achieve the desired behavior? (setq org-indirect-buffer-display 'current-window) The default value is 'other-window. To see available choices, type C-h v aka M-x describe-variable .... – lawlist Nov 8 at 1:04
  • Thanks - that doesn't work unfortunately. Oddly, both 'current-window and 'other-window open the indirect buffer in the same place for me. (I checked and the variable is being updated OK - e.g. if I use 'new-frame the indirect buffer appears in a new frame). – ngm Nov 8 at 20:08

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.