comp.emacs
[Top] [All Lists]

Re: Carbon emacs (OSX) & /usr/bin/emacs using the same .emacs

Subject: Re: Carbon emacs (OSX) & /usr/bin/emacs using the same .emacs
From: Barry Margolin
Date: Mon, 25 Aug 2008 21:26:07 -0400
Newsgroups: comp.emacs

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 ***

<Prev in Thread] Current Thread [Next in Thread>
Privacy Policy