"Bao Haojun" <[email protected]> writes:

> Dear fellow Emacsians,
>
> I'd like you to try my elisp package: skeleton-complete.el, which works
> by regexp rewriting and text matching. It is greatly inspired by
> hippie-expand and ecomplete.el and anything.el. With it you can type a
> minimum and complete with the existing texts in your buffers.
>
> For e.g., I can type =hex= (here the `=' character is for org-mode
> mark-up, meaning verbatim) and press =M-g <return>= and get
> `hippie-expand'; or I can type =p:,= and press =M-s <return>= to get
> =package: skeleton-complete.el,= (which appeared already in the 3rd line
> of this article).
>
> In the first case, =hex= is rewritten as a regexp =h.*e.*x= and it
> matched the *identifier* =hippie-expand=. In the second case, =p:,= is
> rewritten as a regexp of a different flavor: =p.*?:.*?,= and it matched
> the *string* in the 3rd line.
>
> The code is at [[https://github.com/baohaojun/skeleton-complete]], there
> is a more detailed description at
> [[http://baohaojun.github.io/skeleton-complete.html]]. And it is also
> being discussed at [[http://redd.it/1cg7ue]].
>
> Any suggestions/improvements are very welcome!

Sounds useful.  Would be great if you can integrate it into
auto-complete[1] mode, where the completion list will pop up and disappear
automatically without typing extra key to trigger.


Footnotes: 
[1]  http://cx4a.org/software/auto-complete/

-- 
William

http://xwl.appspot.com


_______________________________________________
gnu-emacs-sources mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gnu-emacs-sources

Reply via email to