How to determine operating system in elisp?

前端 未结 7 786
一个人的身影
一个人的身影 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:01

    This is mostly already answered, but for those interested, I just tested this on FreeBSD and there the reported value was "berkeley-unix".

提交回复
热议问题