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

Justin Zhu haoranjzhu at gmail.com
Mon Mar 14 18:42:48 CET 2011


Thanks!

On Mon, Mar 14, 2011 at 5:11 AM, Vegard Øye <vegard_oye at hotmail.com> wrote:

> 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
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: https://lists.ourproject.org/pipermail/implementations-list/attachments/20110314/c197d30a/attachment.htm 


More information about the implementations-list mailing list