Can I detect the display size/resolution in Emacs?

前端 未结 2 1220
囚心锁ツ
囚心锁ツ 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:08

    For a more cross-platform solution, look at

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

    If what you actually want to do is set the Emacs window to full screen on start-up, check out maxframe.el.

    0 讨论(0)
  • 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)
    
    0 讨论(0)
提交回复
热议问题