How to determine operating system in elisp?

前端 未结 7 787
一个人的身影
一个人的身影 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条回答
  •  闹比i
    闹比i (楼主)
    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.

提交回复
热议问题