From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: storm@cua.dk (Kim F. Storm) Newsgroups: gmane.emacs.devel Subject: Suggestions for mode-line-format changes Date: 20 Aug 2002 17:32:36 +0200 Sender: emacs-devel-admin@gnu.org Message-ID: <5xk7mlfsvf.fsf@kfs2.cua.dk> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: main.gmane.org 1029854020 23227 127.0.0.1 (20 Aug 2002 14:33:40 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 20 Aug 2002 14:33:40 +0000 (UTC) Return-path: Original-Received: from quimby.gnus.org ([80.91.224.244]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17hA4g-00062M-00 for ; Tue, 20 Aug 2002 16:33:38 +0200 Original-Received: from monty-python.gnu.org ([199.232.76.173]) by quimby.gnus.org with esmtp (Exim 3.12 #1 (Debian)) id 17hAWd-0005Rq-00 for ; Tue, 20 Aug 2002 17:02:31 +0200 Original-Received: from localhost ([127.0.0.1] helo=monty-python.gnu.org) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hA5g-0004RY-00; Tue, 20 Aug 2002 10:34:40 -0400 Original-Received: from list by monty-python.gnu.org with tmda-scanned (Exim 4.10) id 17hA3J-0004Mq-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 10:32:13 -0400 Original-Received: from mail by monty-python.gnu.org with spam-scanned (Exim 4.10) id 17hA3G-0004MM-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 10:32:12 -0400 Original-Received: from mail.filanet.dk ([195.215.206.179]) by monty-python.gnu.org with esmtp (Exim 4.10) id 17hA3F-0004Lq-00 for emacs-devel@gnu.org; Tue, 20 Aug 2002 10:32:10 -0400 Original-Received: from kfs2.cua.dk.cua.dk (kfs2.local.filanet.dk [192.168.1.182]) by mail.filanet.dk (Postfix) with SMTP id 6F0CB7C016 for ; Tue, 20 Aug 2002 14:32:08 +0000 (GMT) Original-To: emacs-devel@gnu.org Original-Lines: 59 User-Agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 Errors-To: emacs-devel-admin@gnu.org X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.0.11 Precedence: bulk List-Help: List-Post: List-Subscribe: , List-Id: Emacs development discussions. List-Unsubscribe: , List-Archive: Xref: main.gmane.org gmane.emacs.devel:6675 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:6675 Now that the mode-line-position information has been moved from the end of the mode line, and vc-mode is moved there too, the space between the buffer name and the mode-line-modes has become pretty crowded. Now, if you enable display-time and display-battery, which adds time and battery status, e.g. 15:57 [95%], to that part of the mode line as well, it's a total mess. My suggestion is to move the global-mode-string to the end of the mode line; the cost is that the time and battery status isn't always shown (especially in partial width windows). Also, I would like to suggest an alternative presentation of the position, line number, and column number. The current presentation is like L1 C0 Top L172 C23 43% L341 C0 Bot which I find quite annoying to look at. I've been using the following alternative for quite some time, and I find it much easier on the eyes: Top (1,0) 43% (172,23) Bot (341,0) If only one of line-number-mode or column-number-mode is enabled, this doesn't make much sense, so I use the following formats: Top L1 43% C23 Bot L341 To try the suggested format, just execute this (and toggle column and line number mode as you like): (let ((help-echo "mouse-1: select (drag to resize), mouse-2: delete others, mouse-3: delete")) (setq-default mode-line-position `((-3 . ,(propertize "%p" 'help-echo help-echo)) (line-number-mode ((column-number-mode (,(propertize " (%l,%c)" 'help-echo help-echo)) (,(propertize " L%l" 'help-echo help-echo)))) ((column-number-mode (,(propertize " C%c" 'help-echo help-echo)))))))) What do you think? -- Kim F. Storm http://www.cua.dk