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 ...
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 ...
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.
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 ...
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.
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 (...
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 ...
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 ...
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 ...
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/
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 ...
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 ...
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).
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. ...
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 ...
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 ...
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 ...
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.
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
indirect-buffers × 22org-mode × 6
narrowing × 6
buffers × 4
window × 2
fonts × 2
latex × 1
python × 1
elisp × 1
font-lock × 1
files × 1
syntax-highlighting × 1
customize × 1
region × 1
pdf × 1
comment × 1
preview-latex × 1
bookmarks × 1
pdf-tools × 1
markdown-mode × 1
docview × 1
visibility × 1
display-buffer-alist × 1
default × 1