[slime-devel] Re: Problems getting {}[] recognized as parenthesis

GP lisper spambait at CloudDancer.com
Sat Mar 18 22:20:31 UTC 2006


On Sat, 18 Mar 2006 21:41:07 +0300, <jjkola at email.com> wrote:
>
> make emacs show matching round and square brackets

One night on IRC, antifuchs worked out this for me:
(add to your emacs defaults)

; fix [] in slime
(add-hook 'lisp-mode-hook
          (lambda ()
            (slime-mode t)
            (modify-syntax-entry ?\[ "(]  " lisp-mode-syntax-table)
            (modify-syntax-entry ?\] ")[  " lisp-mode-syntax-table)))


-- 
Fairy tales do not tell children the dragons exist.
Children already know that dragons exist.
Fairy tales tell children the dragons can be killed.  -- G.K.Chesterton




More information about the slime-devel mailing list