Stefan Monnier wrote: >> One possibility is of course bind it to C-x w h in isearch, like in >> hi-lock-mode. Could that possible disturb? > > C-x exits isearch, so it would be difficult to do. If highlight-regexp was always bound to C-x w h then something like the simple patched attached could be used. Of course the test for `last-command' could be made a bit more pretty ... Why is not C-x w h always bound to higlight-regexp?