home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / emacs / 3616 < prev    next >
Encoding:
Internet Message Format  |  1992-11-24  |  1.7 KB

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