r/planetemacs • u/sharificles • 3d ago
New package: region-pin.el for floating code snippets
Simply put your cursor on a function call, enum, class instance etc, and do region-pin-follow. It will use dumb-jump as the backend to find the definition and then hover it over your window. This is intended to help provide useful indicators when filling in args like LSP does, or just useful information in general, except you don't need LSP to do this.
If you don't have dumb-jump, you can go to the definition yourself, highlight the region and run region-pin-instant to float it instead. And if you want to save the region permanently under a name use region-pin-save and region-pin-show to search through them.