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

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

Re: multi-word abbrev expansion


From: Valentin Baciu
Subject: Re: multi-word abbrev expansion
Date: Tue, 22 Jan 2013 18:10:07 +0200

Not exactly what you want, but here is some code that changes all 'a' characters into 'b' characters:

(let ((table (make-display-table)))
    (aset table ?a [?b])
    (setf buffer-display-table table))


You can change this to replace the / with an Unicode character. However, when you save the file you will still have the / in place. Maybe  implement a before file write hook and change what is being saved if you need to persist the Unicode character.


On Tue, Jan 22, 2013 at 5:40 PM, Le Wang <address@hidden> wrote:
I asked about this on stackoverflow:
http://stackoverflow.com/questions/14426748/multi-word-abbrev-expansion

I'm mainly interested in expanding "1/2" to the unicode fraction, but
"/" is not word constituent, and I also don't want to change the
syntax table.

--
Le



reply via email to

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