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

  • OnlyFunClips

    OnlyFunClips

    16 ŞUBAT 2012
  • Sean Murphy

    Sean Murphy

    4 ŞUBAT 2009
  • tseyina

    tseyina

    2 AĞUSTOS 2006