From: jOHn wONg <thjwong@gmail.com>
To: help-gnu-emacs@gnu.org
Subject: Carbon emacs (OSX) & /usr/bin/emacs using the same .emacs
Date: Mon, 25 Aug 2008 12:27:22 -0700 (PDT) [thread overview]
Message-ID: <2c90872d-24b3-40cf-82b3-ab425f9c653b@w7g2000hsa.googlegroups.com> (raw)
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)?
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.
next reply other threads:[~2008-08-25 19:27 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-08-25 19:27 jOHn wONg [this message]
2008-08-25 23:25 ` Carbon emacs (OSX) & /usr/bin/emacs using the same .emacs Peter Dyballa
2008-08-26 10:45 ` Nikolaj Schumacher
2008-08-26 10:55 ` Peter Dyballa
2008-08-27 19:06 ` Colin S. Miller
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=2c90872d-24b3-40cf-82b3-ab425f9c653b@w7g2000hsa.googlegroups.com \
--to=thjwong@gmail.com \
--cc=help-gnu-emacs@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.