help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parenthesis matching in lisp mode


From: Oliver Scholz
Subject: Re: parenthesis matching in lisp mode
Date: Sun, 19 Jan 2003 11:07:19 +0100
User-agent: Gnus/5.090008 (Oort Gnus v0.08) Emacs/21.2 (i386-msvc-nt5.1.2600)

Phillip Garland <pgarland@u.washington.edu> writes:

> When in a lisp mode buffer do 
>
> M-x show-paren-mode
>
> or add this in your .emacs file to have this done automatically:
>
> (add-hook 'lisp-mode-hook (lambda () (show-paren-mode)))
>
> ~Phillip

David mentioned already that this should be `(show-paren-mode 1)'.
Besides that `show-paren-mode' is a _global_ minor mode. So a simple

(show-paren-mode 1)

in your .emacs would do. You have it in all major mode then, but that
won't hurt IMO. If you really want it *only* in lisp-mode, you have to
make it buffer local first:

(add-hook 'lisp-mode-hook
          (lambda ()
            (make-local-variable 'show-paren-mode)
            (show-paren-mode 1)))

    Oliver
-- 
30 Nivôse an 211 de la Révolution
Liberté, Egalité, Fraternité!


reply via email to

[Prev in Thread] Current Thread [Next in Thread]