emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Bernt Hansen <bernt@norang.ca>
To: emacs-orgmode@gnu.org
Subject: [PATCH] doc: Add example of the global setting for mutually exclusive tags
Date: Wed, 26 Mar 2008 18:02:44 -0400	[thread overview]
Message-ID: <87k5jpf8jf.fsf_-_@gollum.intra.norang.ca> (raw)
In-Reply-To: 871w5xgqfy.fsf@gollum.intra.norang.ca

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

      reply	other threads:[~2008-03-26 22:03 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-03-26 20:26 mutually exclusive tags Richard G Riley
2008-03-26 20:50 ` Bernt Hansen
2008-03-26 22:02   ` Bernt Hansen [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=87k5jpf8jf.fsf_-_@gollum.intra.norang.ca \
    --to=bernt@norang.ca \
    --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).