From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rodney Price Subject: Re: How to align tag to the right margin Date: Tue, 07 Dec 2010 15:19:20 -0700 Message-ID: <87bp4x5iqf.fsf@jabber.aur.us.ray.com> References: <87aakhedct.fsf@ucl.ac.uk> <4CFEA02E.4030306@os.inf.tu-dresden.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=43026 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1PQ5ry-00010g-2D for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 17:18:47 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1PQ5rt-00063v-K9 for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 17:18:45 -0500 Received: from dfw-mailout1.raytheon.com ([199.46.199.198]:58787) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1PQ5rt-000636-FT for emacs-orgmode@gnu.org; Tue, 07 Dec 2010 17:18:41 -0500 Received: from dmoutc00.directory.ray.com (dmoutc00.directory.ray.com [147.25.138.116]) by dfw-mailout1.raytheon.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id oB7MIULA030110 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Tue, 7 Dec 2010 22:18:37 GMT Received: from dmsmtpc00.directory.ray.com (dmsmtpc00.directory.ray.com [138.126.175.34]) by dmoutc00.directory.ray.com (Switch-3.4.3/Switch-3.4.3) with ESMTP id oB7MIRfS020395 sender rodprice@raytheon.com for ; Tue, 7 Dec 2010 22:18:37 GMT Received: from mk2-msg09.raymail.ray.com (mk2-msg09.mck.us.ray.com [138.126.191.165]) by dmsmtpc00.directory.ray.com (8.12.11/8.12.11) with ESMTP id oB7MIJk5023293 sender rodprice@raytheon.com for ; Tue, 7 Dec 2010 22:18:20 GMT In-Reply-To: <4CFEA02E.4030306@os.inf.tu-dresden.de> (Martin Pohlack's message of "Tue, 07 Dec 2010 21:59:26 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: org-mode C-u C-c C-q works for me. I switch between machines with different monitors, and I find that in the agenda view, the tags can intrude on the headline space. That is, an entry I make on one machine puts the tag in a different place than an entry I make on another machine. The following snippet lines up the tags in the agenda view. ;; Place tags close to the right-hand side of the window (add-hook 'org-finalize-agenda-hook 'place-agenda-tags) (defun place-agenda-tags () "Put the agenda tags by the right border of the agenda window." (setq org-agenda-tags-column (- 4 (window-width))) (org-agenda-align-tags)) -Rod Martin Pohlack writes: > On 07.12.2010 21:48, Chao LU wrote: >> Hi Eric, >> >> Yes, it works, by (setq org-tags-column 90). But new question arise, it does >> not apply to the tags which have already been there (only new tags after the >> modification of the alignment number), so how could I get all the tags >> updated? > > org-align-all-tags, should be bound to c-u c-u c-c c-c. > > HTH, > Martin > > _______________________________________________ > Emacs-orgmode mailing list > Please use `Reply All' to send replies to the list. > Emacs-orgmode@gnu.org > http://lists.gnu.org/mailman/listinfo/emacs-orgmode