summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanno Perrey <hanno@hoowl.se>2021-10-31 16:23:03 +0100
committerLars Ingebrigtsen <larsi@gnus.org>2021-10-31 16:23:41 +0100
commitf1c9286376d570e898d349200412021fd67e13d2 (patch)
tree7cbac2c074266ae32b09c84f53e35086e77e0166
parentaf67ce64eda8bd694f2df5ccd35ec04f65c9ddc8 (diff)
downloademacs-f1c9286376d570e898d349200412021fd67e13d2.tar.gz
emacs-f1c9286376d570e898d349200412021fd67e13d2.tar.bz2
emacs-f1c9286376d570e898d349200412021fd67e13d2.zip
; * doc/misc/org.org: fix capture context example
* doc/misc/org.org (Templates in contexts): Add missing parenthesis to code example for org-capture template contexts as documented in docstring. Copyright-paperwork-exempt: yes (bug#51524).
-rw-r--r--doc/misc/org.org4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/misc/org.org b/doc/misc/org.org
index 788e5efedf5..17fd2dc39f7 100644
--- a/doc/misc/org.org
+++ b/doc/misc/org.org
@@ -7981,7 +7981,7 @@ patches. Then you would configure this option like this:
#+begin_src emacs-lisp
(setq org-capture-templates-contexts
- '(("p" (in-mode . "message-mode"))))
+ '(("p" ((in-mode . "message-mode")))))
#+end_src
You can also tell that the command key {{{kbd(p)}}} should refer to
@@ -7989,7 +7989,7 @@ another template. In that case, add this command key like this:
#+begin_src emacs-lisp
(setq org-capture-templates-contexts
- '(("p" "q" (in-mode . "message-mode"))))
+ '(("p" "q" ((in-mode . "message-mode")))))
#+end_src
See the docstring of the variable for more information.