[Top][All Lists]

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

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

From: Colin S. Miller
Subject: Re: Carbon emacs (OSX) & /usr/bin/emacs using the same .emacs
Date: Wed, 27 Aug 2008 20:06:59 +0100
User-agent: Icedove (X11/20080724)

jOHn wONg 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))
     (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)?

mac-carbon-version-string is present in Carbon Emacs, and /usr/bin/
emacs is lacking such a variable. However, I do not know how to make
use of this to write the .emacs file (evaluating mac-carbon-version-
string will give me a "void-variable" error in /usr/bin/emacs)

Please suggest! Thanks in advance.

I don't use Carbon, but you might be able to do something useful
with invocation-path, which contains the directory containing the
current emacs binary.

Colin S. Miller

Replace the obvious in my email address with the first three letters of the 
hostname to reply.

reply via email to

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