From mboxrd@z Thu Jan 1 00:00:00 1970 From: Noorul Islam K M Subject: Re: Adding tags, grouping tags Date: Fri, 15 Oct 2010 11:25:32 +0530 Message-ID: <87k4lk57aj.fsf@noorul.maa.corp.collab.net> References: <4CB74A73.2090202@gmx.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from [140.186.70.92] (port=53082 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1P6dIE-0001sM-KQ for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 01:57:27 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1P6dID-0002If-Af for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 01:57:26 -0400 Received: from mail-gy0-f169.google.com ([209.85.160.169]:53998) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1P6dID-0002IV-78 for emacs-orgmode@gnu.org; Fri, 15 Oct 2010 01:57:25 -0400 Received: by gyd10 with SMTP id 10so270535gyd.0 for ; Thu, 14 Oct 2010 22:57:24 -0700 (PDT) In-Reply-To: <4CB74A73.2090202@gmx.de> (Karl Maihofer's message of "Thu, 14 Oct 2010 20:22:43 +0200") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: Karl Maihofer Cc: emacs-orgmode@gnu.org Karl Maihofer writes: > I'd like to define many many tags and use numerics (1-0) as selection > keys. I want to define tags for different clients, people, gtd-contexts, > and other contexts. So I had the idea to group the tags (less than ten > tags per group) to be able to define selection keys for every tag. > > I already use groups for my custom agenda views (see example below). So > when I hit C-c a, Org only shows the agenda groups (besides the default > agenda commands) and I do not get to the actual agenda commands until I > hit Q. This enables me to use the keys 1, 2, 3, 4 several times for > different agenda commands (in different groups). > > Example: > > (setq org-agenda-custom-commands > '(("Q" . "Custom queries") ;; gives label to "Q" > ("Q1" "Archive search" search "" > ((org-agenda-files (file-expand-wildcards "~/archive/*.org")))) > ("Q2" "Website search" search "" > ((org-agenda-files (file-expand-wildcards "~/website/*.org")))) > ("Q3" "Projects and Archive" search "" > ((org-agenda-text-search-extra-files (file-expand-wildcards > "~/archive/*.org")))) > ;; searches both projects and archive directories > ("Q4" "Archive tags search" org-tags-view "" > ((org-agenda-files (file-expand-wildcards "~/archive/*.org")))) > ;; ...other commands here > )) > > Is something similar possible for adding tags? > I have something like this shamelessly copied from Bernt's doc. (setq org-tag-alist (quote ((:startgroup) ("@errand" . ?e) ("@office" . ?o) ("@home" . ?h) (:endgroup) ("PHONE" . ?p) ("NEXT" . ?n) ("WAITING" . ?w) ("HOME" . ?H) ("ORG" . ?O)))) Thanks and Regards Noorul