From: Stefan Monnier <monnier@iro.umontreal.ca>
Subject: Re: showing matching {}[]() in lisp and slime mode
Date: Wed, 15 Mar 2006 01:04:29 -0500 [thread overview]
Message-ID: <87mzfs5jpx.fsf-monnier+gnu.emacs.help@gnu.org> (raw)
In-Reply-To: mttd12havf60kh8obdre4g86h220a3ql25@4ax.com
> First I tried editing lisp-mode.el.
Bad idea.
> When those didn't work I tried adding a hook to slime mode
> from site-lisp\slime.el:
> (setq load-path (cons (lispbox-file "slime-20060110") load-path))
> (setenv "SBCL_HOME" (lispbox-file "sbcl-0.9.7/lib/sbcl"))
> (setenv "CCL_DEFAULT_DIRECTORY" (lispbox-file "openmcl-1.0"))
> (require 'slime)
> (slime-setup)
> ;; my own code starts here
> (defun my-keybindings-hook ()
> ((modify-syntax-entry ?\[ "(] " lisp-mode-syntax-table)
> (modify-syntax-entry ?\] ")[ " lisp-mode-syntax-table)
> (modify-syntax-entry ?\{ "(} " lisp-mode-syntax-table)
> (modify-syntax-entry ?\} "){ " lisp-mode-syntax-table)))
Why "lisp-mode-syntax-table"?
> (add-hook 'lisp-mode-hook 'my-keybindings-hook)
> (add-hook 'slime-mode-hook 'my-keybindings-hook)
In what way does it not work? Have you tried it in Lisp-mode and/or in
Slime mode? My guess is that you only tried it in Slime-mode, where it
probably didn't work because slime mode uses another syntax-table than
lisp-mode-syntax-table (presumably it's called slime-mode-syntax-table).
Stefan
next prev parent reply other threads:[~2006-03-15 6:04 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-03-12 21:34 showing matching {}[]() in lisp and slime mode Jyrki Jaakkola
2006-03-13 7:29 ` Stefan Monnier
2006-03-14 17:17 ` Jyrki Jaakkola
2006-03-15 6:04 ` Stefan Monnier [this message]
2006-03-15 13:47 ` Johan Bockgård
2006-03-15 13:40 ` Johan Bockgård
2006-03-15 16:56 ` Jyrki Jaakkola
2006-03-15 18:41 ` Kevin Rodgers
[not found] ` <mailman.69.1142448657.9686.help-gnu-emacs@gnu.org>
2006-03-15 22:02 ` Jyrki Jaakkola
2006-03-16 18:43 ` Jyrki Jaakkola
2006-03-18 16:19 ` Jyrki Jaakkola
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=87mzfs5jpx.fsf-monnier+gnu.emacs.help@gnu.org \
--to=monnier@iro.umontreal.ca \
/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.