all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: David Kastrup <dak@gnu.org>
Subject: Re: parenthesis matching in lisp mode
Date: 18 Jan 2003 23:17:13 +0100	[thread overview]
Message-ID: <x5y95i9k7q.fsf@lola.goethe.zz> (raw)
In-Reply-To: mailman.536.1042927135.21513.help-gnu-emacs@gnu.org

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

       reply	other threads:[~2003-01-18 22:17 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.536.1042927135.21513.help-gnu-emacs@gnu.org>
2003-01-18 22:17 ` David Kastrup [this message]
2003-01-19 12:24   ` parenthesis matching in lisp mode Ehud Karni
2003-01-19 10:07 ` Oliver Scholz
2003-01-18 21:44 Zimmen Gnauh
2003-01-18 21:54 ` Phillip Garland

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=x5y95i9k7q.fsf@lola.goethe.zz \
    --to=dak@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.