How to determine operating system in elisp?

前端 未结 7 803
一个人的身影
一个人的身影 2021-01-30 19:22

How do I programmatically determine which OS Emacs is running under in ELisp?

I would like to run different code in .emacs depending on the OS.

7条回答
  •  予麋鹿
    予麋鹿 (楼主)
    2021-01-30 19:56

    There's also (in versions 24-26 at least) system-configuration, if you want to adjust for differences in build system. However, the documentation of this variable does not describe the possible vales that it may contain like the documentation of the system-type variable does.

提交回复
热议问题