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

[feature request] worked with ace-window. #68

Open
zw963 opened this issue Jun 6, 2016 · 3 comments
Open

[feature request] worked with ace-window. #68

zw963 opened this issue Jun 6, 2016 · 3 comments

Comments

@zw963
Copy link

zw963 commented Jun 6, 2016

ace-window is a easy way switch multi-window/frame quickly.

picture

Thanks.

@ChillarAnand
Copy link

Is it working with ace-window?

I've installed both packages. When i switch window using ace-window, golden ratio is not resizing.

@FrancisMurillo
Copy link

I have a similar problem with window-numbering-mode where when I switched windows it would not resize accordingly. The approach might be to advice select-window or to create hooks in either ace-window or golden-ratio or what have you. The answer to advising select-window(#57 ) might be good enough.

Without being too wordy on the reference, this snippet might help you friend... I think.

;; Refer to issue #57 for the complete code, this is just for ease
(add-hook 'buffer-list-update-hook #'golden-ratio) 
(add-hook 'focus-in-hook           #'golden-ratio)
(add-hook 'focus-out-hook          #'golden-ratio)

@dieggsy
Copy link

dieggsy commented Aug 4, 2017

I was able to get this working with ace-window using the following advice (new advice syntax):

(define-advice select-window (:after (window &optional no-record) golden-ratio-resize-window)
    (golden-ratio)
    nil)

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

No branches or pull requests

4 participants