Reputation: 123
I'm trying to view the same file in 2 buffers, one at normal scale and the other zoomed out, to see the whole buffer (as in notepad++ document map: http://notepad-plus-plus.org/assets/images/docMap.png ).
Is there any way visit the same file in different buffers, so that each buffer can have different settings?
Upvotes: 12
Views: 1605
Reputation: 74420
Try M-x clone-indirect-buffer (or M-x clone-indirect-buffer-other-window aka C-x 4 c), and then you can set the font in one of the buffers real small.
You can make the font smaller or larger in a buffer with the bindings C-x C-- or C-x C-+, which run the command text-scale-adjust
.
There was a mode that someone made that did this splitting/shrinking automatically, but I'm unable to find it.
Upvotes: 18
Reputation: 28531
You want to install the minimap
package (it's in GNU ELPA) which does just that.
Upvotes: 9