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

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

Re: Modify the mode line


From: Kevin Rodgers
Subject: Re: Modify the mode line
Date: Wed, 18 Jan 2006 15:56:33 -0700
User-agent: Mozilla Thunderbird 0.9 (X11/20041105)

luca.spinacci@selex-comms.com wrote:
> I would like to insert in the mode line some information (for instance
> a variable string like the name of current buffer) and update the
> information for each opened buffer.
> I read the info for mode-line-format but being a poor programmer I
> still haven't found a good solution.

(setq mode-line-format
      (cons "a constant string" mode-line-format))

(setq a-variable "a variable string")
(setq mode-line-format
      (cons '(:eval a-variable) mode-line-format))

--
Kevin Rodgers
(setq mode-line-format (cdr mode-line-format))





reply via email to

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