From: Wes James <comptekki@gmail.com>
To: "Johan Bockgård" <bojohan+news@gnu.org>
Cc: 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 15:17:01 -0700 [thread overview]
Message-ID: <CAFjCMHv2V8g6H_5xOwoKDNB1VXTmC8gFK=zp=77JQY7WzShvsA@mail.gmail.com> (raw)
In-Reply-To: <8761qvxeub.fsf@gnu.org>
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
next prev parent reply other threads:[~2013-12-11 22:17 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 [this message]
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAFjCMHv2V8g6H_5xOwoKDNB1VXTmC8gFK=zp=77JQY7WzShvsA@mail.gmail.com' \
--to=comptekki@gmail.com \
--cc=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.
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.