Advertisement
Guest User

Untitled

a guest
Jun 25th, 2019
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. (isearch-forward nil t)
  2. (isearch-yank-string "PATTERN")
  3.  
  4. $ emacs FILE --eval '(isearch-forward nil t)' --eval '(isearch-yank-string "PATTERN")'
  5.  
  6. (defun my-search-for (pattern)
  7. "Search for PATTERN with Isearch."
  8. (interactive "sSearch for: ")
  9. (isearch-forward nil t)
  10. (isearch-yank-string pattern))
  11.  
  12. $ emacs FILE --eval '(my-search-for "also")'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement