Fork me on GitHub
#emacs
<
2019-02-15
>
theeternalpulse18:02:18

Is there a function that is called whenever you focus on a buffer? I want to add general focus to a buffer to the golden-ratio additional commands, but still have golden-ratio's exclusion of modes and buffers work

ag18:02:58

you mean package called “beacon”?

theeternalpulse19:02:34

no, I mean I want to add to the variable golden-ratio-extra-commands whatever command emacs uses or calls when a cursor moves to a buffer

Michael Griffiths19:02:18

You might be interested in this package also: https://github.com/cyrus-and/zoom

theeternalpulse19:02:17

select window seems to work

theeternalpulse19:02:32

I may move on to zoom though

theeternalpulse19:02:56

currently I have a bunch involving winum or evil-window-[direction]

theeternalpulse19:02:17

but would prefer to have a catchall that happens when a window is focused, and just exclude modes

theeternalpulse19:02:25

though beacon is cool

futuro19:02:30

Presumably all of the movement libraries cal into a small handful of emacs functions. Maybe inspect the evil-window-* functions to see what they eventually call?

theeternalpulse19:02:21

Will do, I also wanted to see what things like magit calls when opening the status window that doesn't seem to trigger golden-ratio even when I specify that as an extra command

theeternalpulse19:02:39

I think it only activated it in the window it was called from

theeternalpulse21:02:30

I moved to zoom and it seems to solve those issues, I'll stick with this for a while, but it seems to address some of the cases I have issues with golden-ratio mode

👍 5