Search code examples
emacsemacs24emacs23

Use search script froma previous search emacs


I'm an emacs newbie . I use C-s "text" to search for a text. How do I select from a previous search buffer to research an entry instead of typing it allover again . For instance C-S "text1" C-S "text2" Is there a shortcut to remeber text1 so I dont have to type it again while I search for it ?


Solution

  • If you press C-s C-s you will search for whatever you searched for the last time.

    Using M-p you can walk up in the search history and also edit the search string. Press RET to continue searching.