emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: Marcelo de Moraes Serpa <celoserpa@gmail.com>
Cc: Org Mode <emacs-orgmode@gnu.org>
Subject: Re: add todo state when tagging by specific tag
Date: Thu, 19 Nov 2009 17:14:56 -0500	[thread overview]
Message-ID: <87aayiqhzz.fsf@gollum.intra.norang.ca> (raw)
In-Reply-To: <1e5bcefd0911191411x4137597dvebc2d42a6c9c3eb2@mail.gmail.com> (Marcelo de Moraes Serpa's message of "Thu\, 19 Nov 2009 16\:11\:14 -0600")

Marcelo de Moraes Serpa <celoserpa@gmail.com> writes:

> What would be the easiest way to apply a TODO state to an item just after tagging it by a specific
> tag? For example,  want to tag an item with the :PROJECT: tag and when I do that, change the TODO to
> PROJECT too.
>
> I know it is possible somehow, given the flexibility of elisp and org, but I'd like to know if org
> provides any machinery/API that makes it easier/straightfoward (maybe a hook?)

The other way already works.  If you set a task todo keyword to PROJECT
you can automatically add a PROJECT tag.  See
org-todo-state-tags-triggers to set that up.

-Bernt

      reply	other threads:[~2009-11-19 22:46 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-11-19 22:11 add todo state when tagging by specific tag Marcelo de Moraes Serpa
2009-11-19 22:14 ` Bernt Hansen [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=87aayiqhzz.fsf@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --cc=celoserpa@gmail.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).