Reply to tweet about C-e C-e

62 views
Skip to first unread message

Craig Muth

unread,
May 6, 2013, 4:55:32 AM5/6/13
to xi...@googlegroups.com
In reply from these tweets from @rochgs:

@xiki a question: <C-e> is rebind to <C-e C-e>. I am cool with that
but not with it canceling a region marking. Some ideas? Thanks :)
@xiki by the way, <C-a C-a> also cancels region marking, so now it's
harder to select a whole line.

Note that the mark is still there, even though the region is
deactivated. Most keys that operate on the region don't require it to
be active.

Here's a work-around, though, to get the region to stay active (it
maps the keys directly to the elisp function).

/projects/xiki/lib/xiki/
- key_bindings.rb
| Keys.AA { Line.to_left }
|+ $el.define_key :global_map, $el.kbd("C-a C-a"), :beginning_of_line

| Keys.EE { Line.to_right }
|+ $el.define_key :global_map, $el.kbd("C-e C-e"), :end_of_line

You should probably keep Keys.AA... there, since it does some behind
the scenes stuff to let C-a be a prefix key.

Your key_bindings.rb might be in a different place, and look different
- I'm wrapping up a massive refactor and new version of Xiki.

If you don't want to modify key_bindings.rb directly, you can add
those two lines at the end of ~/.el4r/init.rb instead.

I'm attaching a screenshot of the above xiki diff, since it's slightly
easier to understand what it means when colorized (though you probably
get it). I don't know if google groups will actually show the
attachment.

--Craig
Screen Shot 2013-05-06 at 1.44.34 AM.png

rochgs

unread,
May 6, 2013, 7:13:10 AM5/6/13
to xi...@googlegroups.com
Hi.

First, thanks for the quick and clear answer.

i have added those lines to ~/.el4r/init.rb (I prefer to keep them as configuration so could be version-controlled) and worked perfectly.

By the way, yes, Groups shows the attachment and send it in the activity mails :)

Thanks again for the help and the great worki in Xiki.

Craig Muth

unread,
May 6, 2013, 4:22:00 PM5/6/13
to xi...@googlegroups.com
> First, thanks for the quick and clear answer.

No prob!

> By the way, yes, Groups shows the attachment and send it in the activity
> mails :)

Turns out you were already on the mailing list so I guess it didn't
matter for you:) But it is good to know people searching the google
group will see the images via the web interface.

> Thanks again for the help and the great worki in Xiki.

Thanks for the interest in Xiki.

As you're using it, keep in mind that many of the quirks and
limitations will be fixed by the soon-to-be-released next version of
Xiki.

--Craig
> --
> You received this message because you are subscribed to the Google Groups
> "Xiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to xiki+uns...@googlegroups.com.
> To post to this group, send email to xi...@googlegroups.com.
> Visit this group at http://groups.google.com/group/xiki?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
Reply all
Reply to author
Forward
0 new messages