[Top][All Lists]

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

[ELPA-diffs] /srv/bzr/emacs/elpa r253: Add README file for yasnippet.

From: Chong Yidong
Subject: [ELPA-diffs] /srv/bzr/emacs/elpa r253: Add README file for yasnippet.
Date: Mon, 24 Sep 2012 13:49:04 +0800
User-agent: Bazaar (2.5.0)

revno: 253
committer: Chong Yidong <address@hidden>
branch nick: elpa
timestamp: Mon 2012-09-24 13:49:04 +0800
  Add README file for yasnippet.
=== added file 'packages/yasnippet/README'
--- a/packages/yasnippet/README 1970-01-01 00:00:00 +0000
+++ b/packages/yasnippet/README 2012-09-24 05:49:04 +0000
@@ -0,0 +1,28 @@
+YASnippet is a code template system for Emacs.  To enable it in all
+buffers, add the following line to your init file:
+   (yas-global-mode 1)
+Alternatively, you can enable `yas-minor-mode' in individual buffers.
+When YASnippet is active, the following commands can be used:
+TAB (`yas-expand')
+   Attempt to expand a snippet before point.  For example, typing TAB
+   after `if' may expand a snippet beginning with `if', if one exists.
+   If no snippet expansion is possible, run the usual binding of TAB.
+`C-c & C-s' (`yas-insert-snippet')
+   Prompts for a snippet, and inserts it.
+`C-c & C-n' (`yas-new-snippet')
+   Opens a *new snippet* buffer where you can define a new snippet.
+   Typing C-c C-c in this buffer saves and invokes the definition.
+   The variable `yas-snippet-dirs' determines where snippet
+   definitions are stored.
+`C-c & C-v' (`yas-visit-snippet-file')
+   Prompt for, and visit an existing snippet definition.
+For more information and detailed usage, refer to the project page:
+     http://github.com/capitaomorte/yasnippet

reply via email to

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