help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to handle overfilled mode line?


From: Michaël Cadilhac
Subject: Re: How to handle overfilled mode line?
Date: Thu, 05 Oct 2006 18:58:38 +0200
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux)

Tassilo Horn <heimdall@uni-koblenz.de> writes:

> If the buffer name is a littlebit longer, it doesn't fit on my
> screen anymore.

(setq mode-line-format '((-18 "%b")))

will print the current buffer name in the mode line, truncating it to
18 chars (for example).

Hope it helps.

-- 
/!\ My mail address changed, please update your files accordingly.
 |      Michaël `Micha' Cadilhac   |  Fenouil                               |
 |         Epita/LRDE Promo 2007   |                                        |
 |  http://michael.cadilhac.name   |    -- Poème de François Le Lionnais    |
 `--  -   JID: micha@amessage.be --'                                   -  --'

Attachment: pgpZvma3u5mt5.pgp
Description: PGP signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]