help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Are abbrevs for this?


From: TomSW
Subject: Re: Are abbrevs for this?
Date: Thu, 11 Jun 2009 00:53:07 -0700 (PDT)
User-agent: G2/1.0

On Jun 11, 1:53 am, Xah Lee <xah...@gmail.com> wrote:
> On Jun 10, 6:53 am, "Paulo J. Matos" <pocma...@gmail.com> wrote:
>
> > Hi all,
>
> > I am developing  a new major mode for a new specification language
> > which uses a lot of unicode symbols but it also has an ascii notation.
> > Like some scheme modes convert the lambda keyword into the greek
> > lambda letter, I have a table of keywords that would like them to be
> > changed into unicode symbols.

If the scheme modes are anything like pretty-haskell, they don't
actually convert the text, they use font-lock to disguise "lambda" as
the greek letter - the source code itself doesn't change.

> > Can I use abbrevs for this?

Yes, if you want to replace the ascii notation with the unicode
symbols in the source code. If that is the case then the notation
sounds more like a set of conventional abbreviations than a part of
the language, in which case it would be nice to permit users to
customise the abbreviations; if in fact the ascii notation is part of
the language then the font-lock approach might work.

regards,
Tom SW


reply via email to

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