> I am trying to define an abbrev,
> #i
> to
> #include

I had a similar problem when writing TACL mode where all keywords
begin with #.  IIRC abbrev only looks at characters with word syntax.
Since modifying the mode's syntax table can have all kinds of effects
the easiest solution might be to do something more along these lines.

(add-hook foo-mode-hook
  (lambda () (local-set-key [?\C-c ?i] "#include")))

_______________________________________________
Help-gnu-emacs mailing list
Help-gnu-emacs@gnu.org
http://lists.gnu.org/mailman/listinfo/help-gnu-emacs

Reply via email to