home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #18 / NN_1992_18.iso / spool / gnu / emacs / help / 3735 < prev    next >
Encoding:
Text File  |  1992-08-14  |  1.2 KB  |  33 lines

  1. Path: sparky!uunet!ogicse!das-news.harvard.edu!cantaloupe.srv.cs.cmu.edu!crabapple.srv.cs.cmu.edu!andrew.cmu.edu!jf41+
  2. From: jf41+@andrew.cmu.edu (Jonathan R. Ferro)
  3. Newsgroups: gnu.emacs.help
  4. Subject: Re: Matching Parenthesis
  5. Message-ID: <0eX1Mdq00VpA0c4mck@andrew.cmu.edu>
  6. Date: 14 Aug 92 12:23:05 GMT
  7. Article-I.D.: andrew.0eX1Mdq00VpA0c4mck
  8. References: <1992Aug13.222811.12442@cbfsb.cb.att.com>
  9.     <KEVIN.92Aug14095203@buffalobill.edscom.demon.co.uk>
  10. Distribution: usa
  11. Organization: Carnegie Mellon, Pittsburgh, PA
  12. Lines: 18
  13. In-Reply-To: <KEVIN.92Aug14095203@buffalobill.edscom.demon.co.uk>
  14.  
  15. kevin@edscom.demon.co.uk (Kevin Broadey) writes:
  16. > anand@cbnewsb.cb.att.com (anand.r.setlur) writes:
  17. > >
  18. > > Can someone give me a method in emacs to achieve the equivalent of vi's 
  19. > > "%" command that helps match parenthesis in a given file.
  20. > I use:-
  21. > (defun match-paren ()
  22. >   "Go to the matching parenthesis."
  23.  
  24. This is already built into the default Emacs mappings as
  25. C-M-f (forward-sexp) and C-M-b (backward-sexp).
  26.  
  27. --
  28. Jon Ferro        MIT Transportation Modelling Research Center (TMRC)
  29. jf41+@andrew.cmu.edu    "We can hack it!"
  30. SGNTR VRS VRSN 3.1B: Strppd nd cmprssd fr qckr trnsmssn! nfct yrs tdy!
  31.