[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: abbreviation definitions with non word characters
From: |
H. Dieter Wilhelm |
Subject: |
Re: abbreviation definitions with non word characters |
Date: |
Wed, 26 Nov 2014 13:10:49 +0100 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/25.0.50 (gnu/linux) |
Stefan Monnier <monnier@iro.umontreal.ca> writes:
>> does somebody have an example with the use of :regexp in the property
>> list of abbreviation tables?
>
> I think there are examples in python.el, fortran.el, and f90.el (tho
> the last two are probably identical).
from fortan.el:
...
(";w" . "write" )
(";wh" . "where" )))
"Abbrev table for Fortran mode."
;; Accept ; as the first char of an abbrev. Also allow _ in abbrevs.
:regexp "\\(?:[^[:word:]_;]\\|^\\)\\(;?[[:word:]_]+\\)[^[:word:]_]*")
Thank you, exactly what I was looking for!
Dieter
--
Best wishes
H. Dieter Wilhelm
Darmstadt, Germany