Bastien Guerry <b...@gnu.org> writes: > Hi Nicolas, > > Nicolas Goaziou <m...@nicolasgoaziou.fr> writes: > >> Bastien <b...@gnu.org> writes: >> >>> is there a simple mechanism in Emacs core to restore the same >>> functionnality? >> >> Of course, it is called Abbrev mode: (info "(emacs)Abbrev >> Concepts"). > > Abbrev only expands on words constituents, so "<s" would not work. > >> You may also use (info "(autotype)Using Skeletons") for more advanced >> uses. > > I see. So combining the two, we would have something like this: > > (define-skeleton org-skeleton-src-block > "" nil > > > "#+begin_src" \n > _ \n > "#+end_src") > > (define-abbrev org-mode-abbrev-table "<s" > "" 'org-skeleton-src-block) > > ... modulo the restriction on "<s" mentioned above. > > I need to think about this and Kaushal proposal to see if we can > come up with a simple and backward-compatible solution. > > Already thanks for the pointers.
I'd be happy to add something to the manual, once we've got a clear way of replicating the old system.