logo       

Re: Skeleton & Abbrev: msg#00930

emacs.help

Subject: Re: Skeleton & Abbrev

kai.grossjohann@xxxxxxxxxxxxxxx (Kai Großjohann wrote in message
news:<847kdvkyfc.fsf@xxxxxxxxxxxxxxxxxxxxxxx>...
> tennis_smith@xxxxxxxxx (Tennis Smith) writes:
>
> > 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.
>
> Hm. Underscore looks suspicious. How about you try another abbrev,
> such as ifif? Remember to type whitespace before and after the abbrev.

Thanks, that worked. :) Also, how do I pass a var to the skeleton?
For example:

(define-skeleton tcl-proc
"A simple tcl proc skeleton" nil
\n
"#\n#\n#\n"
"proc PROC_NAME { } {"
\n
_
\n
"} # end PROC_NAME "
)

How do I make "PROC_NAME" the contents of a var I pass at invocation time?

TIA,
-Tennis


<Prev in Thread] Current Thread [Next in Thread>
Google Custom Search

News | FAQ | advertise