Editing The Occur Buffer

Here’s a great Emacs 24 tip from Xah Lee’s Google+ ErgoEmacs circle. If you’re in an Emacs occur buffer you can call 【Meta+xoccur-edit-mode and then make changes to the occur buffer that will be reflected in the original file.

This can be particularly useful with multi-occur because you can operate on several buffers at once. When you’re done making changes call 【Meta+xoccur-cease-edit to post the changes. Although the documentation doesn’t mention it, occur-cease-edit is mapped to 【Ctrl+c Ctrl+c】.

This entry was posted in General and tagged . Bookmark the permalink.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>