all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Shrinking Windows Horizontally
@ 2010-02-11 21:30 Eric James Michael Ritz
  2010-02-11 22:18 ` Drew Adams
  2010-02-16 15:16 ` Bastien
  0 siblings, 2 replies; 4+ messages in thread
From: Eric James Michael Ritz @ 2010-02-11 21:30 UTC (permalink / raw
  To: help-gnu-emacs

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1


Hello my fellow Emacs users.  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?

Thanks in advance for any help!

- --
Eric James Michael Ritz
Cyber Sprocket Labs

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJLdHcEAAoJEEHUZXw5hMWsgCAIAJ7ZgeLOurXZ3urXrLB92TRD
yGMT6yewDv9S/jlvmhgu87xxVh6Glqfjc5oLVHYFE0DXXQgCfCPPUEtMoLSH2J8P
5+PFJ/zgAUC6X734zF3EG2EULtzH+/j3DufOlSDs87vuAiDz6LEVPpesGB1rlB7n
ijorjSX5e42eo7+VO977oeZHi+UgrtT0CMT3k6IRioOfOxTrcT8X98mxS/zSd2yH
YKnmUKjDVj28jOE4eXGl3BLtaUthRQNqZYTwyTIc6/uqtqhnZ0yXNV8Ow2UfAk2W
zLF41cuQ5rkoMaL9hmiPM3iHJl7bynkPCyxxV1JSWTKSISLpfQGE+kBW49HwV/s=
=fRc8
-----END PGP SIGNATURE-----




^ permalink raw reply	[flat|nested] 4+ messages in thread

* RE: Shrinking Windows Horizontally
  2010-02-11 21:30 Shrinking Windows Horizontally Eric James Michael Ritz
@ 2010-02-11 22:18 ` Drew Adams
  2010-02-16 15:16 ` Bastien
  1 sibling, 0 replies; 4+ messages in thread
From: Drew Adams @ 2010-02-11 22:18 UTC (permalink / raw
  To: 'Eric James Michael Ritz', help-gnu-emacs

> 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





^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Shrinking Windows Horizontally
  2010-02-11 21:30 Shrinking Windows Horizontally Eric James Michael Ritz
  2010-02-11 22:18 ` Drew Adams
@ 2010-02-16 15:16 ` Bastien
  2010-02-16 16:54   ` Lennart Borgman
  1 sibling, 1 reply; 4+ messages in thread
From: Bastien @ 2010-02-16 15:16 UTC (permalink / raw
  To: Eric James Michael Ritz; +Cc: help-gnu-emacs

Eric James Michael Ritz <Eric@cybersprocket.com> writes:

> Hello my fellow Emacs users.  Is there a command similar to
> shrink-window-if-larger-than-buffer which will shrink horizontally
> instead of vertically?  

You might find this library useful:

  http://lumiere.ens.fr/~guerry/u/windresize.el

It allows you to resize windows interactively.

-- 
 Bastien




^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Shrinking Windows Horizontally
  2010-02-16 15:16 ` Bastien
@ 2010-02-16 16:54   ` Lennart Borgman
  0 siblings, 0 replies; 4+ messages in thread
From: Lennart Borgman @ 2010-02-16 16:54 UTC (permalink / raw
  To: Bastien; +Cc: Eric James Michael Ritz, help-gnu-emacs

On Tue, Feb 16, 2010 at 4:16 PM, Bastien <bastienguerry@googlemail.com> wrote:
> Eric James Michael Ritz <Eric@cybersprocket.com> writes:
>
>> Hello my fellow Emacs users.  Is there a command similar to
>> shrink-window-if-larger-than-buffer which will shrink horizontally
>> instead of vertically?
>
> You might find this library useful:
>
>  http://lumiere.ens.fr/~guerry/u/windresize.el
>
> It allows you to resize windows interactively.


There is a couple of alternatives here:

  http://www.emacswiki.org/emacs/WindowResize#toc3




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2010-02-16 16:54 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-02-11 21:30 Shrinking Windows Horizontally Eric James Michael Ritz
2010-02-11 22:18 ` Drew Adams
2010-02-16 15:16 ` Bastien
2010-02-16 16:54   ` Lennart Borgman

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.