如何找出我在Emacs中运行的操作系统?

Zub*_*air 1 emacs

是否有一个Elisp命令可以返回"Mac","Windows","linux"等?

Ulr*_*arz 5

system-type是`C源代码'中定义的变量.它的值是gnu/linux

文档:该值是一个符号,表示您正在使用的操作系统的类型.特殊价值:

  `gnu'          compiled for a GNU Hurd system.
  `gnu/linux'    compiled for a GNU/Linux system.
  `gnu/kfreebsd' compiled for a GNU system with a FreeBSD kernel.
  `darwin'       compiled for Darwin (GNU-Darwin, Mac OS X, ...).
  `ms-dos'       compiled as an MS-DOS application.
  `windows-nt'   compiled as a native W32 application.
  `cygwin'       compiled using the Cygwin library.
Run Code Online (Sandbox Code Playgroud)

其他任何东西(在Emacs 23.1中,可能性是:aix,berkeley-unix,hpux,irix,lynxos 3.0.1,usg-unix-v)表示某种Unix系统.