emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Orgmode] [PATCH] doc: Add example of the global setting for mutually ex


From: Bernt Hansen
Subject: [Orgmode] [PATCH] doc: Add example of the global setting for mutually exclusive tags
Date: Wed, 26 Mar 2008 18:02:44 -0400
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux)

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.
 
address@hidden
+The equivalent global setting is
+
address@hidden
+(setq org-tag-alist '((:startgroup . nil)
+                      ("@@work" . ?w) ("@@home" . ?h)
+                      ("@@tennisclub" . ?t)
+                      (:endgroup . nil)
+                      ("laptop" . ?l) ("pc" . ?p)))
address@hidden 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






reply via email to

[Prev in Thread] Current Thread [Next in Thread]