From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: mhuhtala@abo.fi Newsgroups: gmane.emacs.devel Subject: Interactive line spacing Date: Mon, 12 Jul 2010 09:15:51 +0300 Message-ID: <20100712091551.dg3gpe6ge8sksk48@webmail2.abo.fi> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; DelSp="Yes"; format="flowed" Content-Transfer-Encoding: 7bit X-Trace: dough.gmane.org 1278917168 18040 80.91.229.12 (12 Jul 2010 06:46:08 GMT) X-Complaints-To: usenet@dough.gmane.org NNTP-Posting-Date: Mon, 12 Jul 2010 06:46:08 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Mon Jul 12 08:46:07 2010 Return-path: Envelope-to: ged-emacs-devel@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 1OYCmC-0002bm-VX for ged-emacs-devel@m.gmane.org; Mon, 12 Jul 2010 08:46:05 +0200 Original-Received: from localhost ([127.0.0.1]:41156 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYCmC-0001pz-9b for ged-emacs-devel@m.gmane.org; Mon, 12 Jul 2010 02:46:04 -0400 Original-Received: from [140.186.70.92] (port=54849 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1OYCfc-0007Vi-LP for emacs-devel@gnu.org; Mon, 12 Jul 2010 02:39:18 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.69) (envelope-from ) id 1OYCQH-0006Xr-PN for emacs-devel@gnu.org; Mon, 12 Jul 2010 02:23:26 -0400 Original-Received: from smtp2.abo.fi ([130.232.213.77]:46789) by eggs.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1OYCQH-0006Xc-Fs for emacs-devel@gnu.org; Mon, 12 Jul 2010 02:23:25 -0400 Original-Received: from webmail1.abo.fi (webmail2el5.abo.fi [130.232.212.31]) by smtp2.abo.fi (8.14.3/8.12.9) with ESMTP id o6C6FpZw004999 for ; Mon, 12 Jul 2010 09:15:52 +0300 Original-Received: from dsl-tkubrasgw1-ffc4c100-57.dhcp.inet.fi (dsl-tkubrasgw1-ffc4c100-57.dhcp.inet.fi [88.193.196.57]) by webmail2.abo.fi (Horde MIME library) with HTTP; Mon, 12 Jul 2010 09:15:51 +0300 Content-Disposition: inline User-Agent: Internet Messaging Program (IMP) H3 (4.1.6) X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (smtp2.abo.fi [130.232.213.77]); Mon, 12 Jul 2010 09:15:52 +0300 (EEST) X-Virus-Scanned: by roxy.abo.fi (roxy.abo.fi: Mon Jul 12 09:15:52 2010) X-Scanned-By: MIMEDefang 2.68 on 130.232.213.77 X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6 (newer, 3) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:127082 Archived-At: Does anyone else miss interactive setting of line spacing in Emacs? I use 0 for code and certain types of data files with aligned columns, and 5 or more for natural language text. I put this in my .emacs: (defun spaceout (&optional spacing) "Set line-spacing for the current buffer." (interactive "p") (setq line-spacing spacing) (recenter) ) (global-set-key [?\C-+] 'spaceout) The C-+ key binding is similar to Firefox and such.