I want to replace all occurrences of a word in the whole buffer. What i do is:
M-x replace-string RET word-to-be-replaced RET new-word
The problem with this is that it also changes the word-to-be-replaced
even if its only part of another word (for example wanting to change mod to off_mod results also changing set_mode to set_off_mode). How can i change it only in cases it exists exactly as a whole word and not also as parts of other words?