all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: tennis_smith@yahoo.com (Tennis Smith)
Subject: Skeleton & Abbrev
Date: 26 Dec 2002 17:31:59 -0800	[thread overview]
Message-ID: <7f477f72.0212261731.364e59fd@posting.google.com> (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

             reply	other threads:[~2002-12-27  1:31 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-12-27  1:31 Tennis Smith [this message]
2002-12-27 20:19 ` Skeleton & Abbrev 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=7f477f72.0212261731.364e59fd@posting.google.com \
    --to=tennis_smith@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.