Searching for marked (selected) text in Emacs

后端 未结 8 467
北恋
北恋 2021-01-31 01:50

I use emacs for viewing and editing code and other text files. I wanted to know if there is a way to search forward or backward for text which is marked in the current buffer. S

8条回答
  •  遇见更好的自我
    2021-01-31 02:47

    The answers above (including the accepted one) are too cumbersome IMHO. I found the following info and like it well better:

    “Ctrl+s Ctrl+w”. This will search the current word, but you must move your cursor to the beginning of the word first.

    http://xah-forum.blogspot.com/2009/08/search-word-under-cursor-in-emacs.html

提交回复
热议问题