From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: =?utf-8?Q?Johan_Bockg=C3=A5rd?= Newsgroups: gmane.emacs.help Subject: Re: How can I put display-time to the right of the mode line? Date: Wed, 11 Dec 2013 22:22:36 +0100 Organization: Gnus News User Services Message-ID: <8761qvxeub.fsf@gnu.org> References: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain X-Trace: ger.gmane.org 1386798010 25116 80.91.229.3 (11 Dec 2013 21:40:10 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 11 Dec 2013 21:40:10 +0000 (UTC) To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Wed Dec 11 22:40:15 2013 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VqrVu-0005fS-SW for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Dec 2013 22:40:14 +0100 Original-Received: from localhost ([::1]:60409 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VqrVu-0003aW-Fk for geh-help-gnu-emacs@m.gmane.org; Wed, 11 Dec 2013 16:40:14 -0500 Original-Path: usenet.stanford.edu!goblin1!goblin.stu.neva.ru!uio.no!quimby.gnus.org!.POSTED!not-for-mail Original-Newsgroups: gnu.emacs.help Original-Lines: 15 Original-NNTP-Posting-Host: c-d005e555.04-211-6c6b701.cust.bredbandsbolaget.se Original-X-Trace: quimby.gnus.org 1386796958 3732 85.229.5.208 (11 Dec 2013 21:22:38 GMT) Original-X-Complaints-To: usenet@quimby.gnus.org Original-NNTP-Posting-Date: Wed, 11 Dec 2013 21:22:38 +0000 (UTC) User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.3.50 (gnu/linux) Mail-Copies-To: never Cancel-Lock: sha1:8y+PLtPss/57o4uthZ9qJQKDvz0= Original-Xref: usenet.stanford.edu gnu.emacs.help:202678 X-Mailman-Approved-At: Wed, 11 Dec 2013 16:39:56 -0500 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:94947 Archived-At: Alan Schmitt 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))