* multi-word abbrev expansion
@ 2013-01-22 15:40 Le Wang
2013-01-22 16:10 ` Valentin Baciu
0 siblings, 1 reply; 2+ messages in thread
From: Le Wang @ 2013-01-22 15:40 UTC (permalink / raw)
To: GNU Emacs List
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: multi-word abbrev expansion
2013-01-22 15:40 multi-word abbrev expansion Le Wang
@ 2013-01-22 16:10 ` Valentin Baciu
0 siblings, 0 replies; 2+ messages in thread
From: Valentin Baciu @ 2013-01-22 16:10 UTC (permalink / raw)
To: Le Wang; +Cc: GNU Emacs List
[-- Attachment #1: Type: text/plain, Size: 813 bytes --]
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 <l26wang@gmail.com> 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
>
>
[-- Attachment #2: Type: text/html, Size: 1487 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-01-22 16:10 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-01-22 15:40 multi-word abbrev expansion Le Wang
2013-01-22 16:10 ` Valentin Baciu
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.