Emacs
Emacs copied to clipboard
Ctrl-f moves one character forward when emacs mode is not active.
Feel free to let me know how crazy I am. I did not add :lt.plugins.emacs/activate-emacs
to my behaviors file. Nowhere do I map Ctrl-f (neither in user.keymap
or default.keymap
), yet Ctrl-f moves forward a character.
Any ideas? I'm finding this to be... confusing...
So immediately looking at the source, I see on line 20 of the keymap file:
:editor.keys.normal {"ctrl-f" [(:emacs.keymap-cmd "Ctrl-F")]}
. Why is this the desired behavior? I feel like it's more intuitive to only add editor keymaps to :editor.keys.emacs
. What's the reasoning, here?
I personally only wanted access to the codemirror wrapper functions, and did not want to load the whole keymap, so this was a bit confusing to me.
I agree on all counts here, unsure why it was initially written this way. Any input @ibdknox ?
This made sure that ctrl-f was overwritten properly, though it should've been done by just creating a more specific tag as opposed to binding it in normal.