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

  • RFS Dan

    RFS Dan

    22 Temmuz 2014
  • Vicious Computers

    Vicious Comp

    14 EKİM 2006
  • warningthepeople

    warningthepe

    21 EYLÜL 2011