Changes between Version 1 and Version 2 of EmacsSnippetSupport


Ignore:
Timestamp:
11/23/08 22:38:05 (15 years ago)
Author:
desai
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • EmacsSnippetSupport

    v1 v2  
    11= Using Bcfg2 with Emacs + YASnippet mode =  
    22 
    3 This page describes using emacs with YASnippet mode with a set of snippets that allow quick composition of bundles. More snippets are under development.  
     3This page describes using emacs with YASnippet mode with a set of snippets that allow quick composition of bundles and base files. More snippets are under development.  
    44 
    55 1. Download YASnippet from http://code.google.com/p/yasnippet/  
     
    88{{{ 
    99(require 'yasnippet-bundle) 
     10 
     11;;; Bcfg2 snippet 
     12 
    1013(yas/define-snippets 'sgml-mode 
    1114'( 
     
    1316   $0 
    1417</Bundle>" nil) 
     18  ("<Base" "<Base> 
     19   $0 
     20</Base>" nil) 
    1521  ("<Group" "<Group name='${1:groupname}> 
    1622   $0 
     
    3238) 
    3339) 
     40 
    3441}}} 
    3542 1. One quick M-x eval-current-buffer, and this code is enabled 
     
    3744Each of these snippets activates on the opening element, ie <Bundle. After this string is entered, but before entering a space, press <TAB>, and the snippet will be expanded. The template will be inserted into the text with a set of input prompts, which default to overwrite mode and can be tabbed through.  
    3845 
    39 The code above only works for bundles, but will be expanded to support base and other xml files as well.  
     46The code above only works for bundles and base, but will be expanded to support other xml files as well.