21 votes
Accepted

Can I have two views on a file - one narrowed one not?

I think you're looking for clone-indirect-buffer-other-window (bound to C-x 4 c by default). Note that this makes a linked clone of the buffer so you'll need to remember to kill the cloned buffer as ...
Stuart Hickinbottom's user avatar
9 votes

Can I have two views on a file - one narrowed one not?

Since you're using Org Mode, C-c C-x b (org-tree-to-indirect-buffer) may be the best solution. It creates an indirect (new) buffer and narrows it to current subtree, leaving the rest of the document ...
Quarky Quanta's user avatar
5 votes
Accepted

Multiple Independent Views of the Same File

M-x clone-indirect-buffer-other-window More details at: (emacs)Top > Buffers > Indirect Buffers.
Oliver Knodel's user avatar
5 votes

Can I have two views on a file - one narrowed one not?

That is precisely the purpose of library Narrow Indirect (narrow-indirect.el). It gives you narrowing commands that create an indirect buffer that is a clone of the current buffer and that is ...
Drew's user avatar
  • 77.3k
3 votes

pdf-tools indirect buffers

Indirect buffer need special support, since their buffer-file-name is nil. But this is currently not implemented in pdf-tools. So it seems that the answer is no.
politza's user avatar
  • 3,336
3 votes

Any possibility to show multiple narrowed regions at the same time in a buffer?

You can hide multiple regions, or you can have separate indirect buffers for them (one per narrowing). If you want to hide multiple regions, e.g. make them invisible, you can use libraries zones.el (...
Drew's user avatar
  • 77.3k
3 votes
Accepted

Why can't I fontify an indirect buffer?

You should be able to go to the base buffer (the one that you derived the indirect buffer from) and toggle font-lock-mode there (probably twice), to turn font-locking back on (in both the base and the ...
Drew's user avatar
  • 77.3k
3 votes
Accepted

How to reuse org-tree indirect buffer windows?

This should do what you're asking for, keep in mind there are several org-narrow-to functions so you can replace org-narrow-to-subtree with whatever fits your needs. To solve the problem I create my ...
John Lunzer's user avatar
2 votes

Kill other indirect buffers

"Leave only (1) this buffer from all the indirect ones sharing the same base and (2) the base buffer itself." (defun my-kill-other-indirect-bufs () "Kill all indirect buffers other than the current ...
Drew's user avatar
  • 77.3k
2 votes

Org-mode 2-pane writing setup using indirect buffers (or display-buffer-alist

There's now org-sidebar and org-sidebar-tree. https://www.reddit.com/r/orgmode/comments/dbsngi/finally_solving_the_lack_of_a_treeview_navigation/
incandescentman's user avatar
1 vote
Accepted

How to hide comments and move them to a separate window?

(I'll post this answer because it's related, even though it doesn't fully respond to what you want. Hope it helps.) You can use library hide-comnt.el to hide all of the comments in a buffer or the ...
Drew's user avatar
  • 77.3k
1 vote
Accepted

Elisp to increase font-size in indirect buffer

See the text-scale-increase function: text-scale-increase is an autoloaded interactive compiled Lisp function in face-remap.el. (text-scale-increase INC) Increase the height of the ...
muffinmad's user avatar
  • 2,300
1 vote
Accepted

Org-mode 2-pane writing setup using indirect buffers (or display-buffer-alist

A code snippet by @blujay posted here got me through. I made a few minor edits to narrow the org file to specific heading (posted here).
nb3pt470's user avatar
1 vote

Switch back to default font on widening

You can use library narrow-indirect.el to help here. Use command ni-narrow-to-region-indirect-other-window (I bind it to C-x 4 n n) to open an indirect buffer that shows just the current region (e.g. ...
Drew's user avatar
  • 77.3k
1 vote

Preview LaTeX fragment on indirect buffers

I find indirect buffers to be indispensable when using org-mode. Use clone-indirect-buffer instead of make-indirect-buffer to remedy your issue. You will then be able to render and hide Latex ...
James Lin's user avatar
1 vote
Accepted

How to save a desktop with narrowed indirect buffers?

Bookmark+ lets you combine multiple bookmarks as a sequence bookmark. You could try a sequence bookmark that first restores the desktop (using a desktop bookmark) and then restores a particular ...
Drew's user avatar
  • 77.3k
1 vote

Syntax highlighting fails on clone-indirect-buffer-other-window

You can try Just Another Cloning package. Installation: Put jac.el into any directory from your load-path and put (autoload 'jac "jac") into your init file. Usage: With the buffer you want to ...
Tobias's user avatar
  • 33.1k
1 vote

How can I get an org-mode outline in a 2nd buffer as a dynamic table of contents?

I needed something similar, so I put together outline-toc mode. It should work for org-mode docs.
abingham's user avatar
  • 927

Only top scored, non community-wiki answers of a minimum length are eligible