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

  • How Things Are Made

    How Things A

    17 HAZİRAN 2008
  • TurkishRoyal

    TurkishRoyal

    16 Ocak 2007
  • UniqueApps

    UniqueApps

    4 Ocak 2009