all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "Paulo J. Matos" <pocmatos@gmail.com>
To: TomSW <tom.weissmann@gmail.com>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Are abbrevs for this?
Date: Thu, 11 Jun 2009 12:42:38 +0100	[thread overview]
Message-ID: <11b141710906110442x6d62839er5e3fe84fb916d2ff@mail.gmail.com> (raw)
In-Reply-To: <21f4fcb3-2935-4034-8508-9d1dcc128487@m19g2000yqk.googlegroups.com>

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	other threads:[~2009-06-11 11:42 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.368.1244642017.2239.help-gnu-emacs@gnu.org>
2009-06-10 23:53 ` Are abbrevs for this? Xah Lee
2009-06-11  7:53   ` TomSW
2009-06-11 11:42     ` Paulo J. Matos [this message]
     [not found]     ` <mailman.451.1244720587.2239.help-gnu-emacs@gnu.org>
2009-06-11 11:55       ` TomSW
2009-06-13  8:14       ` harven
2009-06-10 13:53 Paulo J. Matos
2009-06-11  1:13 ` Maurizio Vitale
2009-06-11 11:43   ` Paulo J. Matos
2009-06-11 12:18     ` Maurizio Vitale

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=11b141710906110442x6d62839er5e3fe84fb916d2ff@mail.gmail.com \
    --to=pocmatos@gmail.com \
    --cc=help-gnu-emacs@gnu.org \
    --cc=tom.weissmann@gmail.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.