[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: special char in abbrev

From: rgb
Subject: Re: special char in abbrev
Date: 16 Aug 2005 06:10:53 -0700
User-agent: G2/0.2

> 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")))

reply via email to

[Prev in Thread] Current Thread [Next in Thread]