emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rodney Price <rodprice@raytheon.com>
To: org-mode <emacs-orgmode@gnu.org>
Subject: Re: How to align tag to the right margin
Date: Tue, 07 Dec 2010 15:19:20 -0700	[thread overview]
Message-ID: <87bp4x5iqf.fsf@jabber.aur.us.ray.com> (raw)
In-Reply-To: <4CFEA02E.4030306@os.inf.tu-dresden.de> (Martin Pohlack's message of "Tue, 07 Dec 2010 21:59:26 +0100")


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 <mp26@os.inf.tu-dresden.de> 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

      reply	other threads:[~2010-12-07 22:18 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-12-07  7:59 How to align tag to the right margin Chao LU
2010-12-07 15:24 ` Eric S Fraga
2010-12-07 20:48   ` Chao LU
2010-12-07 20:59     ` Martin Pohlack
2010-12-07 22:19       ` Rodney Price [this message]

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.orgmode.org/

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

  git send-email \
    --in-reply-to=87bp4x5iqf.fsf@jabber.aur.us.ray.com \
    --to=rodprice@raytheon.com \
    --cc=emacs-orgmode@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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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