auto-complete / popup-el

Visual Popup Interface Library for Emacs
GNU General Public License v3.0
445 stars 96 forks source link

Allow the user to specify a custom function to build the regexp in isearch #95

Closed Konubinix closed 8 years ago

Konubinix commented 8 years ago

If the user likes to use helm or ivy style of matching candidates, they can provide their own regexp builer.

For instance, in case you like to 'foo bar' to match 'foo.+bar', you can provide a function that replaces spaces by '.+'.

For instance, I set popup-isearch-regexp-builder-function to ivy--regex-plus. (see https://github.com/abo-abo/swiper/blob/master/ivy.el#L1418)

syohex commented 8 years ago

Please use defcustom instead of defvar for such variable.

Konubinix commented 8 years ago

Done :-)

syohex commented 8 years ago

Thanks