mirror of
https://github.com/atom/atom.git
synced 2026-01-23 05:48:10 -05:00
editor will be a plugin, for now force keybinding
creation
This commit is contained in:
@@ -4,6 +4,8 @@ File = require 'fs'
|
||||
Chrome = require 'chrome'
|
||||
Pane = require 'pane'
|
||||
|
||||
{bindKey} = require 'keybinder'
|
||||
|
||||
ace = require 'ace/ace'
|
||||
|
||||
{EditSession} = require 'ace/edit_session'
|
||||
@@ -37,6 +39,9 @@ class Editor extends Pane
|
||||
constructor: (args...) ->
|
||||
super(args...)
|
||||
|
||||
for shortcut, method of @keymap()
|
||||
bindKey @, shortcut, method
|
||||
|
||||
@ace = ace.edit "editor"
|
||||
@ace.setTheme require "ace/theme/twilight"
|
||||
@ace.getSession().setUseSoftTabs true
|
||||
|
||||
Reference in New Issue
Block a user