help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: how do i find out the platform emacs runs on?


From: seki
Subject: Re: how do i find out the platform emacs runs on?
Date: Wed, 26 Nov 2003 10:32:32 +0100
User-agent: KNode/0.7.2

Ola Nilsson wrote:
> 
> (if (eq system-type 'windows-nt)
>     (require 'cygwin-mount)
>   )
> 

I try to have one .emacs between Mac OSX, Linux and NT, here what i
defined :
;windows
(if (eq system-type 'windows-nt)
    (progn
        ...
    ))

;linux
(if (eq system-type 'linux)
    (progn
        ...
    ))

;mac
(if (eq system-type 'darwin)
    (progn
        ...
    ))

for macintosh, i use darwin, as it works both for console and windowed
system.
If you want also to check between console and graphical : test if
window-system is not nil (for example to define a default-frame-alist)

Sébastien Kirche


reply via email to

[Prev in Thread] Current Thread [Next in Thread]