update emacs mode
This commit is contained in:
parent
2eabebccaa
commit
8634f2661d
4 changed files with 42 additions and 29 deletions
|
|
@ -92,6 +92,12 @@ var cmdLine = new layout.singleLineEditor(consoleEl);
|
|||
cmdLine.editor = env.editor;
|
||||
env.editor.cmdLine = cmdLine;
|
||||
|
||||
env.editor.showCommandLine = function(val) {
|
||||
this.cmdLine.focus();
|
||||
if (typeof val == "string")
|
||||
this.cmdLine.setValue(val, 1);
|
||||
};
|
||||
|
||||
/**
|
||||
* This demonstrates how you can define commands and bind shortcuts to them.
|
||||
*/
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue