mirror of
https://github.com/atom/atom.git
synced 2026-01-24 06:18:03 -05:00
Add up/down/left/right emacs bindings
This commit is contained in:
@@ -41,6 +41,8 @@ class Editor extends View
|
||||
initialize: ({buffer}) ->
|
||||
requireStylesheet 'editor.css'
|
||||
requireStylesheet 'theme/twilight.css'
|
||||
require 'keybindings/emacs'
|
||||
|
||||
@id = Editor.idCounter++
|
||||
@editSessionsByBufferId = {}
|
||||
@bindKeys()
|
||||
|
||||
5
src/atom/keybindings/emacs.coffee
Normal file
5
src/atom/keybindings/emacs.coffee
Normal file
@@ -0,0 +1,5 @@
|
||||
window.keymap.bindKeys '.editor',
|
||||
'ctrl-f': 'move-right'
|
||||
'ctrl-b': 'move-left'
|
||||
'ctrl-p': 'move-up'
|
||||
'ctrl-n': 'move-down'
|
||||
Reference in New Issue
Block a user