From mboxrd@z Thu Jan 1 00:00:00 1970 From: Herbert Sitz Subject: Re: Tags question Date: Sat, 24 Dec 2011 20:28:37 +0000 (UTC) Message-ID: References: <878vm26pza.fsf@norang.ca> <27670.1324743602@alphaville.dokosmarshall.org> <31727.1324749383@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([140.186.70.92]:40651) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReYDB-0005d7-UJ for emacs-orgmode@gnu.org; Sat, 24 Dec 2011 15:28:58 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ReYDA-0002SU-F4 for emacs-orgmode@gnu.org; Sat, 24 Dec 2011 15:28:57 -0500 Received: from lo.gmane.org ([80.91.229.12]:35970) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ReYDA-0002SJ-A2 for emacs-orgmode@gnu.org; Sat, 24 Dec 2011 15:28:56 -0500 Received: from list by lo.gmane.org with local (Exim 4.69) (envelope-from ) id 1ReYD8-00071G-1O for emacs-orgmode@gnu.org; Sat, 24 Dec 2011 21:28:54 +0100 Received: from c-24-22-131-140.hsd1.wa.comcast.net ([24.22.131.140]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Dec 2011 21:28:54 +0100 Received: from hesitz by c-24-22-131-140.hsd1.wa.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 24 Dec 2011 21:28:54 +0100 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Nick Dokos 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