emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Herbert Sitz <hesitz@gmail.com>
To: emacs-orgmode@gnu.org
Subject: Re: Tags question
Date: Sat, 24 Dec 2011 20:28:37 +0000 (UTC)	[thread overview]
Message-ID: <loom.20111224T212303-862@post.gmane.org> (raw)
In-Reply-To: 31727.1324749383@alphaville.dokosmarshall.org

Nick Dokos <nicholas.dokos <at> hp.com> writes:
> There is a function that is used for tags completion:
> 
> ,----
> | org-global-tags-completion-table is a Lisp function in `org.el'.
> | 
> | (org-global-tags-completion-table &optional FILES)
> | 
> | Return the list of all tags in all agenda buffer/files.
> | Optional FILES argument is a list of files to which can be used
> | instead of the agenda files.
> `----
> 

An easy alternative if the list of tags is small and relatively stable would
be to create a custom block agenda view (or maybe several different block
agendas).  Below is example code from the Org
documentation:

(setq org-agenda-custom-commands
           '(("h" "Agenda and Home-related tasks"
              ((agenda "")
               (tags-todo "home")
               (tags "garden")))
             ("o" "Agenda and Office-related tasks"
              ((agenda "")
               (tags-todo "work")
               (tags "office")))))

"This will define C-c a h to create a multi-block view for stuff you need to
attend to at home. The resulting agenda buffer will contain your agenda for the
current week, all TODO items that carry the tag ‘home’, and also all lines 
tagged with ‘garden’. Finally the command C-c a o provides a similar view for 
office tasks."
http://orgmode.org/manual/Block-agenda.html#Block-agenda

      reply	other threads:[~2011-12-24 20:28 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-12-24  4:58 Tags question Pavel Panchekha
2011-12-24 13:47 ` Bernt Hansen
2011-12-24 16:20   ` Nick Dokos
2011-12-24 16:22     ` Pavel Panchekha
2011-12-24 17:56       ` Nick Dokos
2011-12-24 20:28         ` Herbert Sitz [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=loom.20111224T212303-862@post.gmane.org \
    --to=hesitz@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).