[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Slime indentation and colour
From: |
Daniel Jensen |
Subject: |
Re: Slime indentation and colour |
Date: |
Mon, 16 Jul 2007 14:37:06 +0200 |
User-agent: |
Gnus/5.110006 (No Gnus v0.6) Emacs/22.1 (gnu/linux) |
weber <hugows@gmail.com> writes:
> On Jul 15, 1:39 pm, dan...@bigwalter.net (Daniel Jensen) wrote:
>
>> (add-hook 'lisp-mode-hook
>> (lambda ()
>> (local-set-key (kbd "RET") 'newline-and-indent)))
>
> Well, I had some problem with that exact key binding.
>
> The problem is that when I set lisp-mode-map, my [ret] would also be
> bound on *slime-repl*, and my expressions would not get evaluated!
> I think you need [ret] to be bound to slime-repl-return in the REPL...
That sounds strange to me. The REPL should not be in Lisp mode or use
that keymap. (My SLIME version is 2007-05-17.)
> So I found out that its better to use slime-mode-map for keybinding
> relative to editing .lisp files, and slime-repl-mode-map to
> keybindings related to the repl.
I don't think that's a good idea. Slime mode is also used for buffers
that are not Lisp (e.g., the apropos buffer.)