[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
- Re: How can I put display-time to the right of the mode line?, (continued)
- Re: How can I put display-time to the right of the mode line?, Johan Bockgård, 2013/12/11
- Re: How can I put display-time to the right of the mode line?, Wes James, 2013/12/11
- Re: How can I put display-time to the right of the mode line?, Emanuel Berg, 2013/12/11
- Re: How can I put display-time to the right of the mode line?, Johan Bockgård, 2013/12/11
- Re: How can I put display-time to the right of the mode line?, Wes James, 2013/12/11
- Re: How can I put display-time to the right of the mode line?, Emanuel Berg, 2013/12/11
- Re: How can I put display-time to the right of the mode line?, Emanuel Berg, 2013/12/13
- Re: How can I put display-time to the right of the mode line?, Rusi, 2013/12/14
- Re: How can I put display-time to the right of the mode line?, Emanuel Berg, 2013/12/14
- Re: How can I put display-time to the right of the mode line?, Rusi, 2013/12/15
Re: How can I put display-time to the right of the mode line?,
Alan Schmitt <=