Newsgroups: fj.editor.emacs
Path: galaxy.trc.rwcp.or.jp!coconuts.jaist!wnoc-tyo-news!news.iij.ad.jp!tyo-noc-news!mss-chobi!mss-dream!jg7gxq!jr7hov!yamazaki
From: yamazaki@jr7hov.prug.or.jp (Hiroshi Yamazaki)
Subject: Re: search matching-patern
In-Reply-To: furihata@hangi.tjsys.co.jp's message of Tue, 1 Nov 1994 06:58:36 GMT
Message-ID: <YAMAZAKI.94Nov2230842@jr7hov.jr7hov.prug.or.jp>
Sender: yamazaki@jr7hov.prug.or.jp (Hiroshi Yamazaki)
Organization: PRUG (Packet Radio User's Group) Nagareyama Branch
References: <FURIHATA.94Nov1155836@mmas4.hangi.tjsys.co.jp>
Distribution: fj
Date: Wed, 2 Nov 1994 14:08:42 GMT
Lines: 36
Xref: galaxy.trc.rwcp.or.jp fj.editor.emacs:5090
X-originally-archived-at: http://galaxy.rwcp.or.jp/text/cgi-bin/newsarticle2?ng=fj.editor.emacs&nb=5090&hd=a
X-reformat-date: Mon, 18 Oct 2004 15:18:22 +0900
X-reformat-comment: Tabs were expanded into 4 column tabstops by the Galaxy's archiver. See http://katsu.watanabe.name/ancientfj/galaxy-format.html for more info.


$B$d$^$6$-!w$W$i$0(B $B$H?=$7$^$9!#(B

In article <FURIHATA.94Nov1155836@mmas4.hangi.tjsys.co.jp> furihata@hangi.tjsys.co.jp (Mamoru Furihata) writes:

> $B$3$l$O(B $B$3$l$GNI$$$N$G$9$,!"4{$KF~NO$5$l$F$$$k%+%C%3!J3+JD$I$A$i$G$b!K$,(B $B$I$l(B
> $B$KBP1~$9$k$+$r4JC1$K8+$D$1$k%3%^%s%I$O$J$$$G$7$g$&$+!#(B
>
> vi $B$G$O!"(B`%'$B$N%-!<$r2!$9$H$G$-$k$s$G$9$,!&!&!&!#(B

Emacs$B$G$b!"F1$8$h$&$K!"3g8L(B ( ) $B$N>e$K%+!<%=%k$,>h$C$F$$$k$H$-$K(B'%'$B$r(B
$B2!$9$H!"BP1~$9$k3g8L$K0\F0$9$k%3!<%I$,$"$j$^$9!#(B
$B$b$&>/$7<j$rF~$l$l$P!"(B { } [ ] $B$H$+$K$bBP1~$G$-$k$G$7$g$&!#(B
.emacs$B$KDI2C$7$F$*3Z$7$_2<$5$$!#(B

;;;
;;; show parenthesis pair like as vi
;;;

(global-set-key "%" 'match-paren)

(defun match-paren (arg)
  "Go to the matching parenthesis if on parenthesis otherwise insert %."
    (interactive "p")
    (cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
          ((looking-at "\\s\)") (forward-char 1) (backward-list 1))
          (t (self-insert-command (or arg 1)))))

$B!t85%M%?$O$I$3$+$i$@$C$?$+$J$!!)(B $B8+$+$1$?J}$O65$($F$/$@$5$$!#(B

$B$G$O$G$O(B
-- 

$B!!0l@iG/$K0lEY$@$1$9$Y$F$N%R%H$N$^$P$?$-$N(B    |  $B;3:j(B  $B9@(B
$B!!=E$J$k=V4V$,K,$l$k(B $B!](B $B$H(B $B%M%3$+$iJ9$-=P$7$?(B |  yamazaki@jr7hov.prug.or.jp

