Add up/down/left/right emacs bindings

This commit is contained in:
Nathan Sobo
2012-03-28 10:44:15 -07:00
parent 0435f37fc4
commit 41e8d2aa2c
2 changed files with 7 additions and 0 deletions

View File

@@ -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()

View 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'