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

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

Re: display window width?


From: Anselm Helbig
Subject: Re: display window width?
Date: Tue, 12 May 2009 11:48:58 +0200
User-agent: SEMI/1.14.6 (Maruoka) FLIM/1.14.8 (Shijō) APEL/10.7 Emacs/22.3 (i686-pc-linux-gnu) MULE/5.0 (SAKAKI)

Hi!

At Tue, 12 May 2009 02:08:43 -0700 (PDT),
knubee <knubee@gmail.com> wrote:
> 
> > > is there a setting so that emacs will always display the width of a
> > > window?
> >
> > M-: (window-width) RET
> 
> thanks. but is there a way to always display this information in the
> mode line?

You could do it like this:

(setq-default mode-line-position
              (cons '(:eval (format "[%s] " (window-width)))
              mode-line-position))

HTH, 

Anselm


-- 
Anselm Helbig 
mailto:anselm.helbig+news2009@googlemail.com


reply via email to

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