all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* Modify the mode line
@ 2006-01-18 14:10 luca.spinacci
  2006-01-18 22:56 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: luca.spinacci @ 2006-01-18 14:10 UTC (permalink / raw)




Hi all,
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.
Thanks in advance,
Luca.

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

* Re: Modify the mode line
  2006-01-18 14:10 Modify the mode line luca.spinacci
@ 2006-01-18 22:56 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2006-01-18 22:56 UTC (permalink / raw)


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

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

end of thread, other threads:[~2006-01-18 22:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-01-18 14:10 Modify the mode line luca.spinacci
2006-01-18 22:56 ` Kevin Rodgers

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.