From: Alan Schmitt <alan.schmitt@inria.fr>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I put display-time to the right of the mode line?
Date: Thu, 12 Dec 2013 21:44:20 +0100 [thread overview]
Message-ID: <m2y53pkdej.fsf@inria.fr> (raw)
In-Reply-To: 8761qvxeub.fsf@gnu.org
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
prev parent reply other threads:[~2013-12-12 20:44 UTC|newest]
Thread overview: 14+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-12-11 8:54 How can I put display-time to the right of the mode line? Alan Schmitt
2013-12-11 15:58 ` Emanuel Berg
2013-12-12 20:43 ` Alan Schmitt
2013-12-11 21:22 ` Johan Bockgård
2013-12-11 22:17 ` Wes James
2013-12-11 22:48 ` Emanuel Berg
2013-12-11 23:08 ` Johan Bockgård
2013-12-11 23:14 ` Emanuel Berg
2013-12-13 21:07 ` Emanuel Berg
2013-12-14 17:14 ` Rusi
2013-12-14 17:33 ` Emanuel Berg
2013-12-15 5:33 ` Rusi
2013-12-11 23:16 ` Wes James
2013-12-12 20:44 ` Alan Schmitt [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=m2y53pkdej.fsf@inria.fr \
--to=alan.schmitt@inria.fr \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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.