🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #435

Re: Detecting Epoch vs Emacs at startup

#435
From: Scott Grosch
Date: Sun, 13 Dec 1992 20:09
19 lines
1343 bytes
In article <1992Dec11.195452.14891@roadnet.com>, rgb@roadnet.ups.com (Rudy Bonefas) writes:
> Someone recently posted a message on how to identify whether you are running Epoch or
> Emacs within your .emacs file.  At the time, I didn't think I needed to know how to do this.  Now I do.  Could whoever posted that entry either re-post it or mail it directly to me?   Thanks.
> 
> "Orthodoxy is unconsciousness." - Winston Smith.
> 

Put the following in your .emacs file.  Then you can always do something like:

(if running-epoch (whatever))


(defvar running-epoch (boundp 'epoch::version))

-- 
Scott Grosch                              Internet: garath@engin.umich.edu
Programmer                                         Bitnet: user7a4b@umichu
Computer Aided Engineering Network                  University of Michigan
Technical Details
Message-ID: <FNS=mg#@engin.umich.edu>
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!garath
References: <1992Dec11.195452.14891@roadnet.com>

Show Full Headers
Complete Article Headers
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!caen!garath
From: garath@synecdoche.engin.umich.edu (Scott Grosch)
Subject: Re: Detecting Epoch vs Emacs at startup
Message-ID: <FNS=mg#@engin.umich.edu>
Date: Sun, 13 Dec 92 15:09:32 EST
Organization: University of Michigan (CAEN)
References:  <1992Dec11.195452.14891@roadnet.com>
Reply-To: garath@engin.umich.edu
Keywords: epoch, emacs
Originator: garath@synecdoche.engin.umich.edu
Nntp-Posting-Host: synecdoche.engin.umich.edu
Lines: 19