From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: [PATCH] doc: Add example of the global setting for mutually exclusive tags Date: Wed, 26 Mar 2008 18:02:44 -0400 Message-ID: <87k5jpf8jf.fsf_-_@gollum.intra.norang.ca> References: <871w5xgqfy.fsf@gollum.intra.norang.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1Jedi4-0005in-Nh for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 18:03:04 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1Jedi2-0005iB-66 for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 18:03:04 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Jedi2-0005i8-2G for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 18:03:02 -0400 Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1Jedi1-0007MU-IK for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 18:03:01 -0400 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Jedht-0001gY-NU for emacs-orgmode@gnu.org; Wed, 26 Mar 2008 22:02:53 +0000 Received: from cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com ([99.239.148.180]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Mar 2008 22:02:53 +0000 Received: from bernt by cpe000102d0fe75-cm0012256ecbde.cpe.net.cable.rogers.com with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 26 Mar 2008 22:02:53 +0000 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: emacs-orgmode@gnu.org Explicitly show an example for setting org-tag-alist globally with mutually exclusive tags for people new to lisp. --- I had trouble with this originally and ended up digging in the org.el code to figure out how to do this. Hopefully this makes it easier on org-mode users :) org.texi | 11 +++++++++++ 1 files changed, 11 insertions(+), 0 deletions(-) diff --git a/org.texi b/org.texi index a13b2e7..fd90b5b 100644 --- a/org.texi +++ b/org.texi @@ -3324,6 +3324,17 @@ and @samp{@@tennisclub} should be selected. @noindent Don't forget to press @kbd{C-c C-c} with the cursor in one of these lines to activate any changes. +@noindent +The equivalent global setting is + +@lisp +(setq org-tag-alist '((:startgroup . nil) + ("@@work" . ?w) ("@@home" . ?h) + ("@@tennisclub" . ?t) + (:endgroup . nil) + ("laptop" . ?l) ("pc" . ?p))) +@end lisp + If at least one tag has a selection key, pressing @kbd{C-c C-c} will automatically present you with a special interface, listing inherited tags, the tags of the current headline, and a list of all valid tags -- 1.5.5.rc1