view elpa/yasnippet-0.11.0/README @ 156:c745e2cc79ee

elpy: update along with direct deps
author Jordi Gutiérrez Hermoso <jordigh@octave.org>
date Mon, 27 Feb 2017 12:17:38 -0500
parents elpa/yasnippet-0.9.1/README@ee4b6191b61e
children
line wrap: on
line source

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