[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Orgmode] How to align tag to the right margin
From: |
Rodney Price |
Subject: |
Re: [Orgmode] How to align tag to the right margin |
Date: |
Tue, 07 Dec 2010 15:19:20 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
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 <address@hidden> 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.
> address@hidden
> http://lists.gnu.org/mailman/listinfo/emacs-orgmode