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

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

Re: How can I put display-time to the right of the mode line?


From: Johan Bockgård
Subject: Re: How can I put display-time to the right of the mode line?
Date: Wed, 11 Dec 2013 22:22:36 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux)

Alan Schmitt <alan.schmitt@polytechnique.org> writes:

> Hello,
>
> Is there a way to have some information in the mode line, in my case the
> time showed by display-time, to be at all the way to the right of the
> mode line?

Try something like

  (display-time)
  (setq global-mode-string (remove 'display-time-string global-mode-string))
  (setq mode-line-end-spaces
        (list (propertize " " 'display '(space :align-to (- right 12)))
              'display-time-string))


reply via email to

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