home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!cs.utexas.edu!sdd.hp.com!saimiri.primate.wisc.edu!usenet.coe.montana.edu!ogicse!reed!nelson
- From: nelson@reed.edu (Nelson Minar)
- Newsgroups: comp.emacs
- Subject: Re: EMACS: It can cut and paste, but can it fold?
- Message-ID: <1992Nov24.044550.12902@reed.edu>
- Date: 24 Nov 92 04:45:50 GMT
- Article-I.D.: reed.1992Nov24.044550.12902
- References: <1992Nov23.175535.5384@philabs.philips.com>
- Reply-To: nelson@reed.edu (Nelson Minar)
- Organization: Reed College, Portland, OR
- Lines: 28
-
- In article <1992Nov23.175535.5384@philabs.philips.com> nrh@philabs.philips.com (Nikolaus R. Haus) writes:
- >Does anyone know if anything has been written to make emacs behave
- >like a folding editor?
-
- Emacs has the primitives necessary to fold up files, but it's way of
- implementing hiding text is a little awkward.
-
- There are several folding packages available on the elisp archive.
- I've had the best luck with "folding.el" by Jamie Lokier. It works by
- inserting strings into your text file that mark the folds, and then
- restricting your view to whatever fold you are currently in. The
- inserted text isn't too bad - "/* {{{ */" for C code, for instance.
- It's a nice general solution
-
- What I really want is some code to automatically fold all your C
- defuns up. I wrote some of this, but haven't had time to finish it.
-
- >I'd also be interested in how one installs new 'modes' etc. into emacs.
-
- essentially all you do is install the lisp file into your load-path,
- load/autoload/require the package, and away it goes.
-
- >If it matters, I'm using DEMACS 1.2.0 (GNU 18.55.120) on a 386DOS machine.
- >(unix too, but primarily DOS, unfortunately)
-
- Get linux! Throw that tired old DOS away :-)
- __
- nelson@reed.edu \/ This is the time, and this is the record of the time
-