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: Alan Schmitt
Subject: Re: How can I put display-time to the right of the mode line?
Date: Thu, 12 Dec 2013 21:44:20 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3 (darwin)

Hi Johan

Johan Bockgård <bojohan+news@gnu.org> writes:

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

It worked great, thanks a lot!

Alan


reply via email to

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