unofficial mirror of help-gnu-emacs@gnu.org
 help / color / mirror / Atom feed
* Skeleton & Abbrev
@ 2002-12-27  1:31 Tennis Smith
  2002-12-27 20:19 ` Kai Großjohann
  0 siblings, 1 reply; 5+ messages in thread
From: Tennis Smith @ 2002-12-27  1:31 UTC (permalink / raw)


Hi,

I'm trying to build some skeletons for tcl and auto-expand them
with abbrev just like the description here: 

http://www.emacswiki.org/cgi-bin/wiki.pl?SkeletonMode

My definition looks like this:

(define-abbrev tcl-mode-abbrev-table "_if"
"" 'tcl-if)

(define-skeleton tcl-if
  "A simple tcl if skeleton" nil
  \n 
  "if { "
  _
  " } {"
  \n \n
  "} else {"
  \n \n
  "}"
)

(setq skeleton-end-hook nil)


So, when I type in _if in a tcl buffer, it should auto-expand to a new 
"if" statement stub. But, it doesn't do anything. I've turned on abbrev
mode and skeleton, but it doesn't make any difference.  Anyone have any
idea why? 

TIA,
-Tennis

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2002-12-30  2:33 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-12-27  1:31 Skeleton & Abbrev Tennis Smith
2002-12-27 20:19 ` Kai Großjohann
2002-12-29 16:06   ` Tennis Smith
2002-12-29 16:55     ` Kai Großjohann
2002-12-30  2:33       ` Tennis Smith

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).