[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] master 6b04dad 120/177: Document type directive

From: João Távora
Subject: [elpa] master 6b04dad 120/177: Document type directive
Date: Sat, 28 Mar 2015 15:41:21 +0000

branch: master
commit 6b04dada67dcc9476a08d3ba59efcb831a66ac73
Author: Noam Postavsky <address@hidden>
Commit: Noam Postavsky <address@hidden>

    Document type directive
    * doc/snippet-development.org: Add type to directive list.
 doc/snippet-development.org |   12 +++++++++++-
 1 files changed, 11 insertions(+), 1 deletions(-)

diff --git a/doc/snippet-development.org b/doc/snippet-development.org
index fb9b94a..4e54bb1 100644
--- a/doc/snippet-development.org
+++ b/doc/snippet-development.org
@@ -169,6 +169,16 @@ 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
+If it's =snippet= (the default when there is no =type= directive), the
+snippet body will be parsed according to the [[Template Syntax]],
+described below.
 ** =# uuid:= unique identifier
 This provides to a way to identify a snippet, independent of its name.
@@ -180,7 +190,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.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]