Mapping ESC in minibuffer normal mode to keyboard-quit and autoindent woes

Vegard Øye vegard_oye at hotmail.com
Mon Mar 14 13:11:08 CET 2011


On 2011-03-13 07:12 +0100, Justin Zhu wrote:

> I like the modal editing of the minibuffer, just that it would be
> nice for pressing ESC multiple times to exit the minibuffer.

Duly noted. :)

I have added the behavior in commit 392fc3c. Do "git pull" to update.

>>> Another issue is vimpulse messing with comment indenting. I have
>>> RET bound to comment-indent-new-line so that in a comment,
>>> pressing enter inserts a comment prefix.
>>
>> What major mode are you using?
>
> I'm using scala-mode with latest git version.

Okay, I can reproduce the bug now. As far as I can tell, it's
independent of Vimpulse: `comment-indent-new-line' simply doesn't work
well in scala-mode. I suggest using scala-mode's own `scala-newline'
command instead, which you can bind with

    (vimpulse-define-key 'scala-mode 'insert-state (kbd "RET") 'scala-newline)

That will override `viper-autoindent's binding of the RET key.

-- 
Vegard



More information about the implementations-list mailing list