From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help Subject: Re: proportional fonts for code editing Date: Sat, 19 May 2007 16:07:49 +0200 Organization: disorganized Message-ID: <87veeooqiy.fsf@localhorst.mine.nu> References: NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1179583740 17343 80.91.229.12 (19 May 2007 14:09:00 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sat, 19 May 2007 14:09:00 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sat May 19 16:08:59 2007 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.50) id 1HpPcA-0007vQ-BX for geh-help-gnu-emacs@m.gmane.org; Sat, 19 May 2007 16:08:58 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpPc9-00056k-Qf for geh-help-gnu-emacs@m.gmane.org; Sat, 19 May 2007 10:08:57 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HpPbt-00055E-OD for help-gnu-emacs@gnu.org; Sat, 19 May 2007 10:08:41 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HpPbr-00054J-N8 for help-gnu-emacs@gnu.org; Sat, 19 May 2007 10:08:40 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HpPbr-00054D-DD for help-gnu-emacs@gnu.org; Sat, 19 May 2007 10:08:39 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HpPbq-0006ed-W5 for help-gnu-emacs@gnu.org; Sat, 19 May 2007 10:08:39 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HpPbh-0007oE-Uf for help-gnu-emacs@gnu.org; Sat, 19 May 2007 16:08:30 +0200 Original-Received: from e178045135.adsl.alicedsl.de ([85.178.45.135]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 May 2007 16:08:29 +0200 Original-Received: from david.hansen by e178045135.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 19 May 2007 16:08:29 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 23 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178045135.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110007 (No Gnus v0.7) Emacs/22.1.50 (gnu/linux) Cancel-Lock: sha1:Qoyv1gwsYneCfmlivXaznC5oyy0= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) 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:44185 Archived-At: On Sat, 19 May 2007 18:26:14 +0530 Rustom Mody wrote: > I have recently discovered proportional fonts and find that I can get > more out of my 15 inch monitor with a proportional font than with the > default. [I also tried fixed but its a bit too small] If it's a TFT try rotating it. > However for editing code, the spaces (at the left) are so narrow that > it hardly shows the indentation. > > Are there any modes/tips for using using proportional fonts in > gnu-emacs that make code editing easier? > Ideally I would like a mode that makes spaces at the beginning of the > line fatter, or else at least all spaces fatter than the default. Not tested but should work: (font-lock-add-keywords 'c-mode ; same with other modes '(("^[[:space:]]*" 0 default))) ; use some face with a bigger or fixed font here David