I would like to write the function for these commands to jump to word in another window:
C-s C-w C-x o C-s C-s C-x o.
This is my code that doesn't work:
(defun jump-word-other-window () (interactive) (save-excursion (isearch-yank-word-or-char) (other-window 1) (isearch-forward) (isearch-repeat-forward) (other-window 1)))
How can I write this working keyboard combination in the function?