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

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

Re: non word abbrevs


From: Emanuel Berg
Subject: Re: non word abbrevs
Date: Sun, 07 Nov 2021 05:06:03 +0100
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/29.0.50 (gnu/linux)

Stefan Monnier via Users list for the GNU Emacs text editor wrote:

> In the mean time, you might be able to implement
> a `post-self-insert-hook` which runs expands your abbrevs.
> You could start with something like:
>
>     (add-hook 'post-self-insert-hook #'my-expand-arrow-abbrevs)
>     (defun my-expand-arrow-abbrevs ()
>       (if (memq (char-before) '(?= ?< ?-))
>           (expand-abbrev)))

Isn't it faster to type something, e.g. "leftarr" or
something, anyway? I mean, compared with typing "<-" ...

But I get it one would like it configurable anyway, and not
a bug.

-- 
underground experts united
https://dataswamp.org/~incal




reply via email to

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