unofficial mirror of emacs-devel@gnu.org 
 help / color / mirror / code / Atom feed
* is there a hook run when display geometry changes?
@ 2011-08-12 17:51 Edward O'Connor
  2011-08-12 18:03 ` Eli Zaretskii
                   ` (2 more replies)
  0 siblings, 3 replies; 20+ messages in thread
From: Edward O'Connor @ 2011-08-12 17:51 UTC (permalink / raw)
  To: emacs-devel

Hi.

Depending on the geometry of the primary display, I like my Emacs to use
a different font size and a different window geometry. I have a function
in my .emacs which inspects (display-pixel-width) and
(display-pixel-height) and then does the right thing, and I run this
function from `emacs-startup-hook'.

This works well enough, but it'd be even awesomer if I could make Emacs
call this function automatically when I plug my laptop into an external
display. On GNUStep and Mac OS X, applications can listen for
NSApplicationDidChangeScreenParametersNotification for this sort of
thing. I assume there is similar functionality under X11 and on Windows.

Is there an existing hook for screen geometry changes that should be run
when Emacs gets an NSApplicationDidChangeScreenParametersNotification?
If not, is this a feature people would be interested in? What are other
people already doing for this?


Thanks,
Ted



^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2011-08-25  5:21 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-12 17:51 is there a hook run when display geometry changes? Edward O'Connor
2011-08-12 18:03 ` Eli Zaretskii
2011-08-12 18:15   ` Edward O'Connor
2011-08-12 18:28     ` Eli Zaretskii
2011-08-12 18:59       ` David De La Harpe Golden
2011-08-12 19:10         ` Thien-Thi Nguyen
2011-08-12 19:40           ` David De La Harpe Golden
2011-08-12 20:04             ` Thien-Thi Nguyen
2011-08-12 21:18               ` David De La Harpe Golden
2011-08-12 21:47                 ` Thien-Thi Nguyen
2011-08-13  5:47                   ` David De La Harpe Golden
2011-08-12 19:37       ` Edward O'Connor
2011-08-12 20:20         ` Eli Zaretskii
2011-08-15 21:48           ` Edward O'Connor
2011-08-16  6:48             ` Eli Zaretskii
2011-08-25  5:21               ` David De La Harpe Golden
2011-08-16 18:54             ` martin rudalics
2011-08-16 20:34               ` Stefan Monnier
2011-08-12 19:01 ` David De La Harpe Golden
2011-08-12 19:09 ` Antoine Levitt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).