GNU Info

Info Node: (autotype)Skeletons as Abbrevs

(autotype)Skeletons as Abbrevs


Next: Skeleton Language Prev: Wrapping Skeletons Up: Top
Enter node , (file) or (file)node

Skeletons as Abbrev Expansions
******************************

   Rather than use a key binding for every skeleton command, you can
also define an abbreviation (Note: (emacs)Defining Abbrevs) that will
expand (Note: (emacs)Expanding Abbrevs) into the skeleton.

   Say you want `ifst' to be an abbreviation for the C language if
statement.  You will tell Emacs that `ifst' expands to the empty string
and then calls the skeleton command.  In Emacs-lisp you can say
something like `(define-abbrev c-mode-abbrev-table "ifst" "" 'c-if)'.
Or you can edit the output from `M-x list-abbrevs' to make it look like
this:

     (c-mode-abbrev-table)
     "if"	       0    ""	       c-if

(Some blank lines of no semantic significance, and other abbrev tables,
have been omitted.)


automatically generated by info2www version 1.2.2.9