all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* How to customize the mode line ?
@ 2003-12-17 20:17 Apokrif
  2003-12-18 17:31 ` Kevin Rodgers
  0 siblings, 1 reply; 2+ messages in thread
From: Apokrif @ 2003-12-17 20:17 UTC (permalink / raw)


I'd like to add a simple message to my mode line. Of course, I can
type for instance:

(setq mode-name (concat mode-name "foo-bar"))

but as mode-name is a variable and not a function, this works only for
the current buffer. How can I modify this line so that the message
keeps being displayed in all buffers when I stay in a particular mode
(and change the message from time to time )?

-- 
Signature spirituelle.

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

* Re: How to customize the mode line ?
  2003-12-17 20:17 How to customize the mode line ? Apokrif
@ 2003-12-18 17:31 ` Kevin Rodgers
  0 siblings, 0 replies; 2+ messages in thread
From: Kevin Rodgers @ 2003-12-18 17:31 UTC (permalink / raw)


Apokrif wrote:

> I'd like to add a simple message to my mode line. Of course, I can
> type for instance:
> 
> (setq mode-name (concat mode-name "foo-bar"))
> 
> but as mode-name is a variable and not a function, this works only for
> the current buffer. How can I modify this line so that the message
> keeps being displayed in all buffers when I stay in a particular mode
> (and change the message from time to time )?

Look for `(:eval FORM)' in the Mode Line Data node of the Emacs Lisp manual.


-- 
Kevin Rodgers

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

end of thread, other threads:[~2003-12-18 17:31 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-12-17 20:17 How to customize the mode line ? Apokrif
2003-12-18 17:31 ` 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.