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

  • Curso Online Gratuito

    Curso Online

    4 Aralık 2011
  • Muse

    Muse

    28 EYLÜL 2006
  • Semantic Mastery

    Semantic Mas

    30 EKİM 2013