[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: Shrinking Windows Horizontally
From: |
Drew Adams |
Subject: |
RE: Shrinking Windows Horizontally |
Date: |
Thu, 11 Feb 2010 14:18:21 -0800 |
> Is there a command similar to shrink-window-if-larger-than-buffer
> which will shrink horizontally instead of vertically?
> I often find myself bringing up a window that
> I want to shrink horizontally as much as possible-usually a side-bar
> with some information about some code I am working on. Does anything
> like this already exist in Emacs? Or if not, any tips to point me in
> a good direction for writing the command myself?
I don't know of anything analogous to `shrink-window-if-larger-than-buffer'.
However, you can use `C-x {' (`shrink-window-horizontally').
To repeat it (to use it incrementally), either bind the command to a repeatable
key or use `C-x { C-x z z z z z'...
You might also be interested in `face-remap+.el'. It recuperates wasted
horizontal whitespace that results from shrinking text, by shrinking the window.
(It can also do the same thing for wasted vertical space.)
http://www.emacswiki.org/emacs/SetFonts#ZoomBuffer