I would like to have a hook into Emacs's isearch-forward
function to make it automatically apply a regex between the input characters while searching a string. For example, I would like to set this regex to [-=<>]
. If I now type foobar
into isearch, it should match foo<bar
, fo=ob=>ar
, f-o-o-b-a-r
, etc.
Is such a functionality already available? I looked into ELPA and MELPA without success. In case this is not available, and since my Elisp abilities are very limited: How could this be implemented?
OK, I found a solution by myself after inspecting
hexl.el
from Emacs.Here's the code.