How to start isearch with a starting string? reddit / emacs ---------------------------------------------------------------------- CorysInTheHouse69 · 2022-10-29 00:55 I’m trying to start isearch from a function call. I want that function to set the starting string of isearch and go ahead and start `isearch- mode`. I thought it would be as simple as `(isearch-forward “example string”)` but this doesn’t seem to work? Any thought? ---------------------------------------------------------------------- 00-11 · 2022-10-29 01:59 In your function, you can add a function to `isearch-mode-hook` that sets variable `isearch-string` to what you want. And your function can remove that hook function when done. (defun foo () (setq isearch-string "the")) (add-hook 'isearch-mode-hook 'foo) ---------------------------------------------------------------------- CorysInTheHouse69 · 2022-10-29 02:21 Thanks but I think I found an even easier way. `(isearch-resume “example string” nil nil t “example string” nil)`