Skip to content

Commit

Permalink
Document type directive
Browse files Browse the repository at this point in the history
* doc/snippet-development.org: Add type to directive list.
  • Loading branch information
npostavs committed May 11, 2014
1 parent 3c53635 commit 6f4e4c1
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion doc/snippet-development.org
Expand Up @@ -169,6 +169,15 @@ This binding will be recorded in the keymap =html-mode-map=. To expand a
paragraph tag newlines, just press =C-u C-c C-c C-m=. Omitting the =C-u=
will expand the paragraph tag without newlines.

** =# type:= snippet or command

If the =type= directive is set to =command=, the body of the snippet
is interpreted as lisp code to be evaluated when the snippet is
triggered.

If it's =snippet= (the default when there is no =type= directive), the
snippet body will be parsed as described below, in [[Template Syntax]].

** =# uuid:= unique identifier

Loading a second snippet file with the same uuid would replace the
Expand All @@ -179,7 +188,7 @@ previous snippet.
This is optional and has no effect whatsoever on snippet functionality,
but it looks nice.

* Template syntax
* <<Template syntax>>

The syntax of the snippet template is simple but powerful, very similar
to TextMate's.
Expand Down

0 comments on commit 6f4e4c1

Please sign in to comment.