How can I jump to the next character matching a regex (see example below)? And if possible, enable highlighting of all the matching characters in the buffer when I jump for the first time.
This article says how to do it for non-ASCII, but I want to allow certain non-ASCII characters. I tried
occur, but it doesn't seem to accept
\x##. Regardless, jump and highlight is highly preferable.
Update: To use isearch for my purpose, I modified this snippet. However, it seems to do a literal search, even if I have
t as argument. How do I make it do a regex search?
(defun my-search-word () (interactive) (isearch-forward t 1) (isearch-yank-string "[^ -~éèëê ]"))
Note: I had to include a literal newline in the search string to prevent highlighting all newlines.