Skip to content

dgtized/occur-context-resize.el

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 

Repository files navigation

occur-context-resize.el

http://melpa.org/packages/occur-context-resize-badge.svg

context-resize.gif

Usage

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:

KeyFunction
+occur-context-resize-larger
-occur-context-resize-smaller
0occur-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.

Install

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)

License

Copyright © 2014-2021 Charles L.G. Comstock

Distributed under the GNU General Public License, version 3

About

Dynamically resize context around matches in occur-mode

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published