|
|
In article
<7967bf37-20d1-44ba-a8de-ebf3de4a00ce@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
jOHn wONg <thjwong@xxxxxxxxx> wrote:
> Hi all,
>
> in my .emac file, I want to load different things onto different emacs
> by a structure such as the followings:
>
> (if (or (eq window-system 'w32) (eq window-system 'win32))
> (progn
> (print "we are in windows!")
> ;; making Emacs to work with Cygwin
> (setenv "PATH" (concat "C:/cygwin/bin;" (getenv "PATH")))
> (setq exec-path (cons "C:/cygwin/bin/" exec-path))
> (require 'setup-cygwin)
> ;; For subprocesses invoked via the shell
> ;; (e.g., "shell -c command")
> (setq shell-file-name explicit-shell-file-name)))
>
> Of course the above is for detecting windows, is there any parameter
> that can let me tell the difference between Carbon Emacs and /usr/bin/
> emacs Emacs (in darwin shell)?
window-system is mac in Carbon Emacs, nil when /usr/bin/emacs is run in
a shell.
--
Barry Margolin, barmar@xxxxxxxxxxxx
Arlington, MA
*** PLEASE post questions in newsgroups, not directly to me ***
*** PLEASE don't copy me on replies, I'll read them in the group ***
|
|