Questions tagged [indirect-buffers]
22 questions
26
votes
6 answers
How can I get an org-mode outline in a 2nd buffer as a dynamic table of contents?
When I edit large documents, I would like to see where I'm at by seeing the outline (with no-content) in a separate buffer. Like when you read a PDF file there is a TOC on the left. (see below)
In org-mode it's possible to expand/collapse outline.…

Leo Ufimtsev
- 4,488
- 3
- 22
- 45
20
votes
3 answers
Can I have two views on a file - one narrowed one not?
I am editing some file, abc.org, and call org-narrow-to-block to narrow to a code block that I want to edit. For the editing process I have to access another part of abc.org and just want to show it in another window. So I do "C-x 2" and find that…

Matthias
- 745
- 3
- 14
19
votes
3 answers
Why use indirect buffers?
What are the benefits of using indirect buffers? Under what circumstances are they useful?

SabreWolfy
- 1,378
- 1
- 13
- 26
10
votes
2 answers
How should I get the filename of the original buffer in an indirect cloned buffer?
I wanted to look at different portions of a buffer in two different frames, as I have two monitors of different shapes that I can't easily span a single frame over. Some googling led me to use clone-indirect-buffer, which works nicely.
However,…

rneatherway
- 483
- 3
- 11
7
votes
2 answers
Syntax highlighting fails on clone-indirect-buffer-other-window
I normally use indirect buffers while I edit python code in python-mode, I create them by running clone-indirect-buffer-other-window. While the syntax highlighting of the main buffer looks just fine, sometimes it is wrong in the indirect one.…

jmlorenzi
- 283
- 1
- 5
6
votes
1 answer
Why can't I fontify an indirect buffer?
I like using indirect buffers and narrowing to work on multiple sections of code simultaneously.
I noticed recently that if I disable font-lock-mode in an indirect buffer then I cannot get proper syntax highlighting back. I can reenable the mode,…

purple_arrows
- 2,373
- 10
- 19
6
votes
1 answer
How to save a desktop with narrowed indirect buffers?
I am unable to figure out a way to save my narrowed indirect buffer window, and restore it as it was.
Say I have a frame with several windows containing several indirect buffers, each narrowed to a different subtree (org mode) or region. What I…

Novus
- 107
- 4
5
votes
1 answer
Move to other cloned buffer to same point? (sync position of indirect buffers) (org-mode)
I like to clone-indirect-buffer . But then once in a while, I want to move to the other buffer and go to the same position as in the previous marker.
This is usually the case when I use the indirect buffer as an 'outline' and want to s-mouse-1 to…

Leo Ufimtsev
- 4,488
- 3
- 22
- 45
5
votes
1 answer
Preview LaTeX fragment on indirect buffers
I am writing my research notes in org-mode and they contain many LaTeX formulas. I use the preview feature (C-c C-x C-l) a lot. As the notes are rather large, I also tend to use an indirect buffer, to jump around to have a quick glance to refer to…

jmlorenzi
- 283
- 1
- 5
2
votes
1 answer
How to hide comments and move them to a separate window?
I'm interested in hiding comments in code or structured text, but displaying them in another window; i.e. same buffer, two windows side-by-side, one showing the main text (code, or content), but hiding or minimizing comments, and the other window…

Jacob Lee
- 227
- 1
- 7
2
votes
1 answer
Any possibility to show multiple narrowed regions at the same time in a buffer?
As title self-explains, I would like to show multiple regions in different places.
narrow-to-region could be a possible solution, but as documentation indicated, only one region from begin to end could be narrowed. Any thoughts?

Leu_Grady
- 2,420
- 1
- 17
- 27
2
votes
3 answers
Org-mode 2-pane writing setup using indirect buffers (or display-buffer-alist
I am trying to set up a 2-pane writing setup in org-mode (similar to this). I'm using org-tree-to-indirect-buffer, and want to have the following functionality:
1. Opening a specific heading in a 2nd pane: Keeping the cursor is on a heading/…

nb3pt470
- 71
- 6
2
votes
1 answer
Kill other indirect buffers
Suppose I have a buffer and I make several indirect buffer clones of it. Is it possible to kill all these buffers except for the currently visited one?
I have found buffer-base-buffer in the manual, which allows to find the parent base buffer, but…

serycjon
- 381
- 2
- 8
2
votes
1 answer
pdf-tools indirect buffers
I am using an indirect buffer of a pdf from a pdf-tools PDFView buffer. This works except the indirect buffer is in DocView mode, and therefore I can't use any of the pdf-tools features in that buffer.
Is there a way to clone the PDFView buffer into…

salotz
- 1,370
- 10
- 21
1
vote
1 answer
Multiple Independent Views of the Same File
I can C-x 2 to view the same file in two buffers, but if I for example do this with an org file, then collapse the top heading, this also messes with the first buffer;)
Can I open an independent view of the same file? If I change it, the other…

Jason Hunter
- 519
- 2
- 9