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: Wes James
Subject: Re: How can I put display-time to the right of the mode line?
Date: Wed, 11 Dec 2013 15:17:01 -0700

On Wed, Dec 11, 2013 at 2:22 PM, Johan Bockgård <bojohan+news@gnu.org>wrote:

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

I put this in to scratch buffer and then did M-x eval-buffer, but I don't
see any change.  What am I missing?

Thanks,

-wes


reply via email to

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