Emacs: Narrow to Region
What is Narrow to Region
Narrow to Region is a feature in emacs that lets you restrict editing to just a region of the current buffer. (as if the whole buffer is just that region)
- Alt+x
narrow-to-region - Restrict editing in this buffer to the current region.
- Alt+x
widen -
remove the effect of
narrow-to-region.
🟢 TIP: Narrow to Region is useful for example when you want to do a lot find and replace, but limit to part of buffer. 〔see Emacs: Find Replace〕
Emacs Principle
- Emacs: Principle, Command, Keys
- Emacs: Jargons (Glossary)
- Emacs: Mode Line (Status Bar)
- Emacs: Major Mode
- Emacs: Minor Mode
- Emacs Init: Hook
- Emacs: Minibuffer
- Emacs: Messages Buffer
- Emacs: Universal Argument (C-u prefix arg)
- Emacs: Repeat Last Command
- Emacs: Jump to Previous Position
- Emacs: Narrow to Region