unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
From: "Johan Bockgård" <bojohan+news@gnu.org>
To: help-gnu-emacs@gnu.org
Subject: Re: How can I put display-time to the right of the mode line?
Date: Wed, 11 Dec 2013 22:22:36 +0100	[thread overview]
Message-ID: <8761qvxeub.fsf@gnu.org> (raw)
In-Reply-To: m2y53rbwdd.fsf@polytechnique.org

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


  parent reply	other threads:[~2013-12-11 21:22 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 [this message]
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

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

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=8761qvxeub.fsf@gnu.org \
    --to=bojohan+news@gnu.org \
    --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.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).