How to determine operating system in elisp?

前端 未结 7 785
一个人的身影
一个人的身影 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 20:03

    In a .emacs, there is not only the system-type, but also the window-system variable. This is useful when you want to choose between some x only option, or a terminal, or macos setting.

    0 讨论(0)
提交回复
热议问题