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: Paulo J. Matos
Subject: Re: Are abbrevs for this?
Date: Thu, 11 Jun 2009 12:42:38 +0100

On Thu, Jun 11, 2009 at 8:53 AM, TomSW<tom.weissmann@gmail.com> wrote:
> 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.
>

That's the approach I need...

>> > 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.
>

Can you ref any example doing that? Would the haskell-mode be the
thing to look at?

Cheers,

Paulo Matos

> regards,
> Tom SW
>



-- 
Paulo Jorge Matos - pocmatos at gmail.com
http://www.pmatos.net




reply via email to

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