How to have an emacs function called when display size changes?

Posted by Alex K on Programmers See other posts from Programmers or by Alex K
Published on 2014-06-02T21:47:38Z Indexed on 2014/06/03 3:40 UTC
Read the original article Hit count: 179

Filed under:

I'm trying to define an emacs function that will be called when the display size changes, currently I'm not finding any hooks that I can use for this.

I an NOT trying to notice when the emacs window changes size.

My use case is that I have emacs open on my laptop, then I close it and bring it to work and plug it into a bigger monitor and turn it on via the keyboard. After logging in my windows are all in the top left corner.

I want emacs to notice the screen size change and call my function allow me to reposition the window and change the font size.

yes, I know about stay but I also want to change the font size.

I'm running emacs 24.3.1 from emacsformacosx.com under OSX Mavericks

© Programmers or respective owner

Related posts about emacs