Re: Parens Matching
- From: vanekl <vanek@xxxxxxx>
- Date: Sun, 30 Mar 2008 17:10:37 +0000
dstein64 wrote:
I am still new to emacs and Common Lisp, so this may be a trivial
question. When I am working in SLIME, I typically have 2 buffers, one
for the REPL, and one for editing code. When a function is small, and
I close a parenthesis, emacs quickly flashes the corresponding
parenthesis that is being closed. However, when a function is very
long, I can not see what open parenthesis corresponds to the closed
parenthesis I just typed. This is because it is above what is viewable
on the screen. How should I deal with this? Is there any key binding
in SLIME that allows me to quickly flash the corresponding open paren
that I am working in? Thanks.
(defun goto-match-paren (arg)
"Go to the matching parenthesis if on parenthesis."
(interactive "p")
(cond ((looking-at "\\s\(") (forward-list 1) (backward-char 1))
((looking-at "\\s\)") (forward-char 1) (backward-list 1))
(t nil)))
(global-set-key [(control c) (\])] 'goto-match-paren)
.
- References:
- Parens Matching
- From: dstein64
- Parens Matching
- Prev by Date: Re: Parens Matching
- Next by Date: Re: Parens Matching
- Previous by thread: Re: Parens Matching
- Next by thread: Re: Parens Matching
- Index(es):
Relevant Pages
|
|