Allows dynamic re-sizing the surrounding context in an occur mode buffer. This is similar to the diff resizing in magit. The following key bindings are enabled in occur-mode
:
Key | Function |
---|---|
+ | occur-context-resize-larger |
- | occur-context-resize-smaller |
0 | occur-context-resize-default |
occur-context-resize-default
reverts the context size to nil
, which reverts to using list-matching-lines-default-context-lines
for default context size.
Using the MELPA package archive,
M-x package-install [RET] occur-context-resize [RET]
And then add the following somewhere in your emacs initialization
(add-hook 'occur-mode-hook 'occur-context-resize-mode)
Copyright © 2014-2021 Charles L.G. Comstock
Distributed under the GNU General Public License, version 3