🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: gnu.epoch.misc
Article #1547

An emacs to epoch user-compatibility fix

#1547
From: Christopher Davis
Date: Mon, 30 Mar 1992 18:27
35 lines
2129 bytes
I used to use emacs under X quite a bit, because I didn't want to use
beta versions of epoch4 but also couldn't get used to a separate
minibuffer.  I then found that my old "OK, done with file, C-x C-c"
habits were, um, not too practical under epoch, even with the "Do you
really really want to do this" in dot.emacs; I didn't want to be asked,
I wanted the window to go away (but not epoch).

So I dug out the elisp manual, and did some hacking...

(if running-epoch
    (progn
      (defun ckd-delete-screen ()
        (interactive)
        (if (= (length (epoch::screen-list 'all)) 1)
            (my-exit-from-emacs)
          (epoch::delete-screen (epoch::current-screen)))
        )
      )
)

(if running-epoch (global-set-key "\C-x\C-c" 'ckd-delete-screen))
(if running-epoch (global-set-key "\C-x\C-z" 'my-exit-from-emacs))

Since I never use C-xC-z anyway, it makes a nice shortcut to quit epoch
if I have more than one screen open, without making me kill each one; I
haven't bothered recoding ckd-delete-screen to take an optional
argument, though, which is really the proper way to do it.

OBTW, Andy Norman's 'gnuserv' package makes for great epoch menus within
twm (for those of us who don't use gwm)...
--
Christopher Davis <ckd@eff.org> |    ECONOMIC OBSERVATIONS DEPARTMENT
System Manager & Postmaster     |  "There's always something going out of
Electronic Frontier Foundation  |      business in Central Square."
+1 617 864 0665  NIC: [CKD1]    |   -Rita Marie Rouvalis <rita@eff.org>
Technical Details
Message-ID: <CKD.92Mar30132612@loiosh.eff.org>
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!ukma!widener!eff!ckd

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: fc7ee,61a04c037b2fd83c,start
X-Google-Attributes: gidfc7ee,public
X-Google-ArrivalTime: 1992-03-30 10:27:22 PST
Newsgroups: gnu.epoch.misc
Path: arc1-ca.pugleaf.net!sparky!uunet!wupost!darwin.sura.net!ukma!widener!eff!ckd
From: ckd@eff.org (Christopher Davis)
Subject: An emacs to epoch user-compatibility fix
Message-ID: <CKD.92Mar30132612@loiosh.eff.org>
Sender: usenet@eff.org (NNTP News Poster)
Nntp-Posting-Host: loiosh.eff.org
Organization: Electronic Frontier Foundation Tech Central
Date: Mon, 30 Mar 1992 18:27:22 GMT
Lines: 35