SORU
30 Kasım 2009, PAZARTESİ


Nasıl elisp işletim sistemi belirlemek için?

Nasıl programlı olarak Emacs ELisp altında çalışan belirleyebilirim?

.emacs farklı kod çalıştırmak için OS bağlı olarak istiyorum.

CEVAP
30 Kasım 2009, PAZARTESİ


system-type değişken:

system-type is a variable defined in `C source code'.
Its value is darwin

Documentation:
Value is symbol indicating type of operating system you are using.
Special values:
  `gnu'         compiled for a GNU Hurd system.
  `gnu/linux'   compiled for a GNU/Linux system.
  `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.
Anything else indicates some sort of Unix system.

Bunu Paylaş:
  • Google+
  • E-Posta
Etiketler:

YORUMLAR

SPONSOR VİDEO

Rastgele Yazarlar

  • ehowhome

    ehowhome

    22 NİSAN 2009
  • eurotuner

    eurotuner

    6 Mart 2006
  • KliptOut KwazeeKilla

    KliptOut Kwa

    24 ŞUBAT 2010