Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Possibility for highlighting differing functions in split buffers? #12

Open
cmacrae opened this issue Dec 15, 2016 · 2 comments
Open

Possibility for highlighting differing functions in split buffers? #12

cmacrae opened this issue Dec 15, 2016 · 2 comments

Comments

@cmacrae
Copy link

cmacrae commented Dec 15, 2016

Hey @larstvei 👋 Thank you so much for Focus. I've got a lot of stuff I love in my Emacs config, but Focus is very high up on the list!

I'm not sure if this would even be possible, as I'm not familiar with how the point works when visiting the same buffer in a split pane(s). But, I was wondering if it might be possible to highlight the function at the point, depending on the point's position in each pane.

So, one buffer open in a split pane. The one on the left I have the point on one function, the one on the right I have the point at a differing function in that same buffer. I'd like both functions to be highlighted and the rest dimmed as usual.

Like I say, I'm not entirely sure if this is even possible, due to how Emacs may manipulate the point based on panes (when flipping to/from panes, does it simply record the point position, then actually move the point back to that position when re-focussing that pane?), but I figured I'd drop this issue in to see what your thoughts are :)

@larstvei
Copy link
Owner

Hi, love to hear that you enjoy Focus! I'm not sure if I'm able to implement this, but i love the idea! Feel free to take a stab at it yourself, and I'll be glad to look over your changes.

I'll set it up as an enhancement, and hope to make some progress on it, but can't make any promises.

@cmacrae
Copy link
Author

cmacrae commented Dec 16, 2016

Nice one @larstvei - I might see if I'm able to start on it, though my grasp of elisp (or lisps in general) is loose! Of course, I wouldn't expect anything :) Just figured I'd raise the idea

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants