summaryrefslogtreecommitdiff
path: root/docs/source/configuration/index.rst
diff options
context:
space:
mode:
authorPatrick Totzke <patricktotzke@gmail.com>2012-02-24 10:50:11 +0000
committerPatrick Totzke <patricktotzke@gmail.com>2012-02-24 10:50:11 +0000
commitcd7f84dea631529920e46dd6eafa4423e7f7090f (patch)
tree2bae765f152f6b3384ad5f47fd1c22fb050f99d8 /docs/source/configuration/index.rst
parent0443dfdaf62ebc99e557fe2df06f06a3ba507c28 (diff)
docs love
Diffstat (limited to 'docs/source/configuration/index.rst')
-rw-r--r--docs/source/configuration/index.rst11
1 files changed, 8 insertions, 3 deletions
diff --git a/docs/source/configuration/index.rst b/docs/source/configuration/index.rst
index 33cd81ec..4b951ed2 100644
--- a/docs/source/configuration/index.rst
+++ b/docs/source/configuration/index.rst
@@ -265,14 +265,19 @@ like this::
[[encrypted]]
translated= ⚷
-You may use regular expressions in the tagstring subsections to theme multiple tagstrings at once.
+You may use regular expressions in the tagstring subsections to theme multiple tagstrings at once (first match wins).
If you do so, you can use the `translation` option to specify a string substitution that will
rename a matching tagstring. `translation` takes a comma separated *pair* of strings that will be fed to
-:func:`re.sub`. For instance, to theme all your `nmbug`_ tagstrings you can use the following::
+:func:`re.sub`. For instance, to theme all your `nmbug`_ tagstrings and espacially colour tag `notmuch::bug` red,
+do the following::
+ [[notmuch::bug]]
+ fg = 'light red, bold'
+ bg = '#88d'
+ translated = 'nm:bug'
[[notmuch::.*]]
fg = '#fff'
bg = '#88d'
- translation = 'notmuch::(\*)','nm\1'
+ translation = 'notmuch::(\*)','nm:\1'
.. _nmbug: http://notmuchmail.org/nmbug/