From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Drew Adams" Newsgroups: gmane.emacs.help Subject: RE: Shrinking Windows Horizontally Date: Thu, 11 Feb 2010 14:18:21 -0800 Message-ID: References: <4B747705.3000909@cybersprocket.com> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1265926742 10064 80.91.229.12 (11 Feb 2010 22:19:02 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 11 Feb 2010 22:19:02 +0000 (UTC) To: "'Eric James Michael Ritz'" , Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Thu Feb 11 23:19:00 2010 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1NfhNC-0002um-CH for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Feb 2010 23:18:58 +0100 Original-Received: from localhost ([127.0.0.1]:43371 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfhNB-0006NQ-Pf for geh-help-gnu-emacs@m.gmane.org; Thu, 11 Feb 2010 17:18:57 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1NfhMk-0006M1-Ub for help-gnu-emacs@gnu.org; Thu, 11 Feb 2010 17:18:31 -0500 Original-Received: from [140.186.70.92] (port=46915 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1NfhMj-0006LW-Hj for help-gnu-emacs@gnu.org; Thu, 11 Feb 2010 17:18:29 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1NfhMh-00041q-14 for help-gnu-emacs@gnu.org; Thu, 11 Feb 2010 17:18:29 -0500 Original-Received: from rcsinet11.oracle.com ([148.87.113.123]:29656) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1NfhMg-00041c-SE for help-gnu-emacs@gnu.org; Thu, 11 Feb 2010 17:18:26 -0500 Original-Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by rcsinet11.oracle.com (Switch-3.4.2/Switch-3.4.2) with ESMTP id o1BMIJ3h003053 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK); Thu, 11 Feb 2010 22:18:20 GMT Original-Received: from acsmt354.oracle.com (acsmt354.oracle.com [141.146.40.154]) by acsinet15.oracle.com (Switch-3.4.2/Switch-3.4.1) with ESMTP id o1B53SiF001304; Thu, 11 Feb 2010 22:18:17 GMT Original-Received: from abhmt019.oracle.com by acsmt353.oracle.com with ESMTP id 23800021265926695; Thu, 11 Feb 2010 14:18:15 -0800 Original-Received: from dradamslap1 (/130.35.178.194) by default (Oracle Beehive Gateway v4.0) with ESMTP ; Thu, 11 Feb 2010 14:18:15 -0800 X-Mailer: Microsoft Office Outlook 11 In-Reply-To: <4B747705.3000909@cybersprocket.com> Thread-Index: AcqrZeB/wz/qEASVRia1NRpbSzZ3NQAAMCgA X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.5579 X-Source-IP: acsmt354.oracle.com [141.146.40.154] X-Auth-Type: Internal IP X-CT-RefId: str=0001.0A090203.4B74822B.000D:SCFMA4539814,ss=1,fgs=0 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:71807 Archived-At: > 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