-
Notifications
You must be signed in to change notification settings - Fork 39
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
Add advice on `select-window' #57
Comments
For the sake of completeness, I would like to mention another option (which might be even better choice for
For instance, on Windows explicitly advising |
After some testing, I've improved this approach even further by minimizing the number of executions of
Please, consider adding this to |
+1 👍 |
It looks like this package starts to rot. Pity. However, when I have some more free time, I'll be forking and maintaining this. |
@Alexander-Shukaev I just ran into this one. I'll join you in maintaining once i'm a bit more comfortable with lisp. |
@Alexander-Shukaev I just found this package, it's a great idea but doesn't work with |
@m-cat Until the package is fixed you can use this:
|
Just to confirm: took the snippet from #57 (comment) with some minor cosmetic changes, killed off post-command hooking and advice, overall the code got simpler and things seem to work nicely. |
* Took code from roman#57 (comment) with some modifications. * Killed off `golden-ratio-extra-commands' (and the associated post-command hook) and all defadvices. * Touch fewer hooks.
What's the rationale behind not adding an advice for
select-window
? Instead of adding advice toother-window
, one should have advisedselect-window
as the lowest-level function for window selection (which is used by all the other Emacs code that requires this action). Otherwise, this plugin is merely useless.I'll leave the code here...
... feel free to adapt it to the old
defadvice
system.By the way, in general, the ultimate recipe to ensure some action happening when frames/windows/buffers are switched is
The text was updated successfully, but these errors were encountered: