[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: parenthesis matching in lisp mode
From: |
David Kastrup |
Subject: |
Re: parenthesis matching in lisp mode |
Date: |
18 Jan 2003 23:17:13 +0100 |
User-agent: |
Gnus/5.09 (Gnus v5.9.0) Emacs/21.3.50 |
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)))
Nonsense. You could enter the above just as
(add-hook 'lisp-mode-hook 'show-paren-mode)
but it would be equally wrong: it _toggles_ show-paren-mode every
time the lisp mode hook gets executed.
So please rather write
(add-hook 'lisp-mode-hook (lambda() (show-paren-mode 1)))
--
David Kastrup, Kriemhildstr. 15, 44793 Bochum