all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* display window width?
@ 2009-05-12  1:48 knubee
  2009-05-12  7:21 ` Pascal J. Bourguignon
  0 siblings, 1 reply; 5+ messages in thread
From: knubee @ 2009-05-12  1:48 UTC (permalink / raw
  To: help-gnu-emacs

is there a setting so that emacs will always display the width of a
window?

thanks, k.


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: display window width?
  2009-05-12  1:48 display window width? knubee
@ 2009-05-12  7:21 ` Pascal J. Bourguignon
  2009-05-12  9:08   ` knubee
  0 siblings, 1 reply; 5+ messages in thread
From: Pascal J. Bourguignon @ 2009-05-12  7:21 UTC (permalink / raw
  To: help-gnu-emacs

knubee <knubee@gmail.com> writes:

> is there a setting so that emacs will always display the width of a
> window?

M-: (window-width) RET

-- 
__Pascal Bourguignon__


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: display window width?
  2009-05-12  7:21 ` Pascal J. Bourguignon
@ 2009-05-12  9:08   ` knubee
  2009-05-12  9:48     ` Anselm Helbig
  0 siblings, 1 reply; 5+ messages in thread
From: knubee @ 2009-05-12  9:08 UTC (permalink / raw
  To: help-gnu-emacs

> > 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?


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: display window width?
  2009-05-12  9:08   ` knubee
@ 2009-05-12  9:48     ` Anselm Helbig
  2009-05-13  2:22       ` knubee
  0 siblings, 1 reply; 5+ messages in thread
From: Anselm Helbig @ 2009-05-12  9:48 UTC (permalink / raw
  To: help-gnu-emacs

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


^ permalink raw reply	[flat|nested] 5+ messages in thread

* Re: display window width?
  2009-05-12  9:48     ` Anselm Helbig
@ 2009-05-13  2:22       ` knubee
  0 siblings, 0 replies; 5+ messages in thread
From: knubee @ 2009-05-13  2:22 UTC (permalink / raw
  To: help-gnu-emacs

> > 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))

great, thanks!


^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2009-05-13  2:22 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-05-12  1:48 display window width? knubee
2009-05-12  7:21 ` Pascal J. Bourguignon
2009-05-12  9:08   ` knubee
2009-05-12  9:48     ` Anselm Helbig
2009-05-13  2:22       ` knubee

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.