emacs find/replace details

Here's a detailed tutorial on the most frequestly used find/replace commands, and the details about letter-case-sensitivity in find string and replacement string. See: Find & Replace with Emacs.

Here's a summery:

  • Major commands: {query-replace, query-replace-regexp, dired-do-query-replace-regexp}
  • By default, the case is not sensitive, and case for replacement is also smart.
  • Call set-variable to set “case-replace” to nil if you want the replacement's case be exactly as you typed.
  • If you rather the whole thing be exactly you typed, call toggle-case-fold-search. (You might want to set a alias “tc” if you need this often.)

Popular posts from this blog

Browser User Agent Strings 2012

11 Years of Writing About Emacs

does md5 creates more randomness?