branch: externals/tempel
commit 11319f98b51d47c94bee40e93fbb1abf6899e1be
Author: Daniel Mendler <[email protected]>
Commit: Daniel Mendler <[email protected]>
README indentation
---
README.org | 38 +++++++++++++++++++-------------------
1 file changed, 19 insertions(+), 19 deletions(-)
diff --git a/README.org b/README.org
index 7450a056f0..c6cccf53b4 100644
--- a/README.org
+++ b/README.org
@@ -201,28 +201,28 @@ All the Tempo syntax elements are fully supported. The
syntax elements are
described in detail in the docstring of ~tempo-define-template~ in tempo.el. We
document the important ones here:
- - "string" Inserts a string literal.
- - ~p~ Inserts an unnamed placeholder field.
- - ~n~ Inserts a newline.
- - ~>~ Indents with ~indent-according-to-mode~.
- - ~r~ Inserts the current region.
- - ~r>~ The region, but indented.
- - ~n>~ Inserts a newline and indents.
- - ~&~ Insert newline if there is only whitespace between line start and point.
- - ~%~ Insert newline if there is only whitespace between point and line end.
- - ~o~ Like ~%~ but leaves the point before newline.
- - ~(s NAME)~ Inserts a named field.
- - ~(p PROMPT <NAME> <NONINS>)~ Insert an optionally named field with a prompt.
- The ~PROMPT~ is displayed directly in the buffer as default value. If
~NOINSERT~
- is non-nil, no field is inserted. Then the minibuffer is used for prompting
- and the value is bound to ~NAME~.
- - ~(r PROMPT <NAME> <NOINSERT>)~ Insert region or act like ~(p ...)~.
- - ~(r> PROMPT <NAME> <NOINSERT>)~ Act like ~(r ...)~, but indent region.
+- "string" Inserts a string literal.
+- ~p~ Inserts an unnamed placeholder field.
+- ~n~ Inserts a newline.
+- ~>~ Indents with ~indent-according-to-mode~.
+- ~r~ Inserts the current region.
+- ~r>~ The region, but indented.
+- ~n>~ Inserts a newline and indents.
+- ~&~ Insert newline if there is only whitespace between line start and point.
+- ~%~ Insert newline if there is only whitespace between point and line end.
+- ~o~ Like ~%~ but leaves the point before newline.
+- ~(s NAME)~ Inserts a named field.
+- ~(p PROMPT <NAME> <NONINS>)~ Insert an optionally named field with a prompt.
+ The ~PROMPT~ is displayed directly in the buffer as default value. If
~NOINSERT~
+ is non-nil, no field is inserted. Then the minibuffer is used for prompting
+ and the value is bound to ~NAME~.
+- ~(r PROMPT <NAME> <NOINSERT>)~ Insert region or act like ~(p ...)~.
+- ~(r> PROMPT <NAME> <NOINSERT>)~ Act like ~(r ...)~, but indent region.
Furthermore Tempel supports syntax extensions:
- - ~(p FORM <NAME> <NONINS>)~ Like ~p~ described above, but ~FORM~ is
evaluated.
- - ~(FORM ...)~ Other Lisp forms are evaluated. Named fields are lexically
bound.
+- ~(p FORM <NAME> <NONINS>)~ Like ~p~ described above, but ~FORM~ is evaluated.
+- ~(FORM ...)~ Other Lisp forms are evaluated. Named fields are lexically
bound.
Use caution with templates which execute arbitrary code!