Emacs: Find Replace and Change Letter Case
Problem
make each line start with capital letter.
change
some thing in the water does not compute
to
Some thing in the water Does not compute
Solution
Alt+x query-replace-regexp
type Ctrl+q Ctrl+j to insert a linefeed.
type
\([a-z]\)
Return
in the replace prompt, type
\,(concat "\n" (upcase \1))
or use downcase
Emacs, find replace with a lisp expression examples
Emacs Find Replace
- Emacs: Search Text
- Emacs: Find Replace
- Emacs: Find Replace, by Regex
- Emacs: Find Replace and Change Letter Case
- Emacs: Highlight Word, Line
- Emacs: List Matching Lines
- Emacs: Search Text in Directory
- Emacs: Find Replace Text in Directory
- Emacs: Regular Expression
- Emacs Init: isearch Whitespace Regex
- Emacs Init: isearch by Arrow Keys
- Emacs Flaw: isearch Current Word
- Emacs: Search Current Word 📜
- Emacs: Xah Find Replace (xah-find.el) 📦