emacs key emulation possible?

10 views
Skip to first unread message

smcho

unread,
Nov 11, 2010, 11:32:39 AM11/11/10
to leo-editor
Can I use emacs keys - C-a/C-e/C-k ... with leo?

Edward K. Ream

unread,
Nov 11, 2010, 6:12:33 PM11/11/10
to leo-e...@googlegroups.com
On Thu, Nov 11, 2010 at 10:32 AM, smcho <csmg...@gmail.com> wrote:
> Can I use emacs keys - C-a/C-e/C-k ... with leo?

The short answer is, yes you can, but it may take some work. Start
your investigations with leoSettings.leo, the node::

@settings-->Keyboard shortcuts-->About modes

Several sets of (disabled) key bindings use modes to give multi-key bindings.

I hope to make Leo more flexible in this area for Leo 4.9.

Edward

smcho

unread,
Nov 16, 2010, 11:16:27 AM11/16/10
to leo-editor
I find that
@settings->@Keyboard shortcuts -> @ignore Unused key bindings -> @keys
Default Emacs shortcuts

And I see that

beginning-of-line = Alt-Up
beginning-of-line = Control-a

The 'Control-a' doesn't work, and I think it's because it's under the
@ignore line.

Q1 : Is it OK to remove the @ignore to use Control-a key?
Q2 : is the multiple key setup works? I mean Alt-Up, home, and Control-
a can be used for beginning-of-line without any problem?

On Nov 11, 5:12 pm, "Edward K. Ream" <edream...@gmail.com> wrote:

Edward K. Ream

unread,
Nov 16, 2010, 11:20:16 AM11/16/10
to leo-e...@googlegroups.com
On Tue, Nov 16, 2010 at 10:16 AM, smcho <csmg...@gmail.com> wrote:
> I find that
> @settings->@Keyboard shortcuts -> @ignore Unused key bindings -> @keys
> Default Emacs shortcuts
>
> And I see that
>
> beginning-of-line = Alt-Up
> beginning-of-line = Control-a
>
> The 'Control-a' doesn't work, and I think it's because it's under the
> @ignore line.

Right. To enable the emacs setting, move them out of the @ignore node
and put the EKR settings into the @ignore node.

After that, the recommended way is to make any desired *personal*
changes in an @keys node in myLeoSettings.leo. Make sure that this
@keys node is a descendant of the @settings node in myLeoSettings.leo.

Edward

smcho

unread,
Nov 16, 2010, 11:35:12 AM11/16/10
to leo-editor
> Right.  To enable the emacs setting, move them out of the @ignore node
> and put the EKR settings into the @ignore node.
Isn't it a good idea to copy all the @shortcuts Emacs under @keys EKR
bindings?
BTW, what EKR stands for?


On Nov 16, 10:20 am, "Edward K. Ream" <edream...@gmail.com> wrote:

Edward K. Ream

unread,
Nov 16, 2010, 11:41:21 AM11/16/10
to leo-e...@googlegroups.com
On Tue, Nov 16, 2010 at 10:35 AM, smcho <csmg...@gmail.com> wrote:

> BTW, what EKR stands for?

They are my initials.

Edward

Reply all
Reply to author
Forward
0 new messages