emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

show-enclosing-scopes


From: Jefferson Carpenter
Subject: show-enclosing-scopes
Date: Wed, 16 May 2018 06:41:20 +0000
User-agent: Mozilla/5.0 (Windows NT 6.2; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.7.0

Just wrote a nifty little gadget that shows you the scopes you are inside of. Eval this buffer:

https://raw.githubusercontent.com/jeffersoncarpenter/emacs.d/master/show-enclosing-scope.el

Then move point around. A map of the scopes you're in appears at the top of the window. Useful for knowing where you are when you're paging up and down the file, or searching-forward for a text string, esp. in code with long functions.

Main problem is that it's very flickery -- not 100% sure why, but I'm pretty sure the (redisplay) are part of the reason. I had to add those in order for (scroll-up) and (scroll-down) to interoperate properly with (goto-char).



reply via email to

[Prev in Thread] Current Thread [Next in Thread]