[incremental search] emacs uses isearch by default
This commit is contained in:
parent
569563aa5f
commit
5cc2c50ebb
4 changed files with 10 additions and 6 deletions
|
|
@ -246,6 +246,7 @@ require("./config").defineOptions(Editor.prototype, "editor", {
|
|||
handler.setupIncrementalSearch(this, val);
|
||||
}
|
||||
});
|
||||
this._emit('incrementalSearchSettingChanged', {isEnabled: val});
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
|
|||
|
|
@ -108,10 +108,9 @@ exports.handler.attach = function(editor) {
|
|||
editor.commands.addCommands(commands);
|
||||
exports.handler.platform = editor.commands.platform;
|
||||
editor.$emacsModeHandler = this;
|
||||
var hasISearch = editor.getOption('useIncrementalSearch');
|
||||
if (hasISearch != this.usesIncrementalSearch) {
|
||||
this.setupIncrementalSearch(editor, hasISearch);
|
||||
};
|
||||
require('../incremental_search');
|
||||
editor.setOption('useIncrementalSearch', true);
|
||||
this.setupIncrementalSearch(editor, true);
|
||||
};
|
||||
|
||||
exports.handler.detach = function(editor) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue