Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Native Emacs style caret moving keybindings #2193

Closed
ivan-avalos opened this issue Jun 15, 2019 · 5 comments
Closed

Native Emacs style caret moving keybindings #2193

ivan-avalos opened this issue Jun 15, 2019 · 5 comments

Comments

@ivan-avalos
Copy link

Hello! I think it would be nice to have Emacs-style caret moving keybings such as:

C-f  Move to left
C-b  Move to right
C-n  Move down
C-p  Move up
C-e  Go to end of line
C-a  Go to start of line

How can I configure such keybindings? I'm not asking for general Emacs keybindings, but just the ones used to navigate through text. Thanks.

@elextr
Copy link
Member

elextr commented Jun 15, 2019

Similar to the Vim plugin, somebody could make an Emacs plugin.

@ivan-avalos
Copy link
Author

I would like to tweak the Vim plugin to create my own Emacs plugin, but I don't know how.

@ivan-avalos
Copy link
Author

ivan-avalos commented Jun 24, 2019

I found this in Geany.app/Contents/Resources/share/themes/Mac/gtk-2.0-key/gtkrc, that seems to be the Emacs-like keybindings, but I don't know how to enable them:

binding "gtk-mac-emacs-like"
{
  bind "<ctrl>a" { "move-cursor" (paragraph-ends, -1, 0) }
  bind "<shift><ctrl>a" { "move-cursor" (paragraph-ends, -1, 1) }
  bind "<ctrl>e" { "move-cursor" (paragraph-ends, 1, 0) }
  bind "<shift><ctrl>e" { "move-cursor" (paragraph-ends, 1, 1) }

  bind "<ctrl>b" { "move-cursor" (logical-positions, -1, 0) }
  bind "<shift><ctrl>b" { "move-cursor" (logical-positions, -1, 1) }
  bind "<ctrl>f" { "move-cursor" (logical-positions, 1, 0) }
  bind "<shift><ctrl>f" { "move-cursor" (logical-positions, 1, 1) }
}

That's the only thing I want.

@codebrainz
Copy link
Member

Related: #596

@ivan-avalos
Copy link
Author

Well, now I think this is irrelevant.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants