Can I detect the display size/resolution in Emacs?

前端 未结 2 1233
囚心锁ツ
囚心锁ツ 2020-12-28 08:11

I\'d like to change the window/frame size of my XEmacs based on the current display resolution.

This is useful when I run my laptop either by itself or attached to a

2条回答
  •  眼角桃花
    2020-12-28 09:12

    The current display resolution is available using the following functions (both non-interactive).

    (x-display-pixel-width)
    (x-display-pixel-height)
    

提交回复
热议问题