Re: Parens Matching



On Mar 30, 11:51 pm, dstein64 <DStei...@xxxxxxxxx> 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.

I use mic-paren for that. You can get mic-paren.el from:

http://www.emacswiki.org/cgi-bin/emacs/download/mic-paren.el

Then put mic-paren.el in your emacs load path
(http://www.gnu.org/software/emacs/emacs-lisp-intro/html_node/Loading-
Files.html).

Then put the following in your .emacs:

(require 'mic-paren)
(paren-activate)
(setq paren-display-message 'only)

However, for some reason, if a parenthesized expression is
very long, matching of parentheses will fail. To fix that,
put the following in your .emacs:

(setq blink-matching-paren-distance nil)

More info on the aforementioned function(s) and variables
can be accesed via the emacs help system:

C-h f paren-activate RET
C-h v paren-display-message RET
C-h v blink-matching-paren-distance RET

(^o^)
--
Rommel M. Martinez
.



Relevant Pages

  • Parens Matching
    ... I am still new to emacs and Common Lisp, so this may be a trivial ... When I am working in SLIME, I typically have 2 buffers, one ... I close a parenthesis, ... I can not see what open parenthesis corresponds to the closed ...
    (comp.lang.lisp)
  • Re: Parens Matching
    ... When I am working in SLIME, I typically have 2 buffers, one ... and one for editing code. ... I close a parenthesis, ... Use some keybinding in SLIME to add closing parens DWIM-style ...
    (comp.lang.lisp)
  • Re: Parens Matching
    ... When I am working in SLIME, I typically have 2 buffers, one ... close a parenthesis, emacs quickly flashes the corresponding parenthesis ... see what open parenthesis corresponds to the closed parenthesis I just ...
    (comp.lang.lisp)
  • Re: Parens Matching
    ... When I am working in SLIME, I typically have 2 buffers, one ... I close a parenthesis, ... I can not see what open parenthesis corresponds to the closed ... If you cannot see the opening parenthesis, ...
    (comp.lang.lisp)
  • Re: Mismatched parenthesis?
    ... parenthesis, even if there is one, and is marks it with paren-mismatch- ... I'm using Emacs 22 with paren.el. ... Sorry for the haste. ...
    (comp.emacs)