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.