This repository has been archived by the owner on Oct 21, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
emacs_compiled.js
51 lines (50 loc) · 3.8 KB
/
emacs_compiled.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
if(!lt.util.load.provided_QMARK_('lt.plugins.emacs')) {
goog.provide('lt.plugins.emacs');
goog.require('cljs.core');
goog.require('lt.objs.sidebar.command');
goog.require('lt.objs.sidebar.command');
goog.require('lt.objs.context');
goog.require('lt.objs.context');
goog.require('lt.objs.editor.pool');
goog.require('lt.util.load');
goog.require('lt.objs.editor');
goog.require('lt.object');
goog.require('lt.object');
goog.require('lt.util.load');
goog.require('lt.objs.editor');
goog.require('lt.objs.editor.pool');
goog.require('lt.objs.sidebar.command');
lt.plugins.emacs.make_emacs_editor = (function make_emacs_editor(ed){lt.objs.editor.set_options.call(null,ed,new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"keyMap","keyMap",4174180847),"emacs"], null));
return lt.object.add_tags.call(null,ed,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"editor.keys.emacs","editor.keys.emacs",3283998978)], null));
});
lt.plugins.emacs.make_normal_editor = (function make_normal_editor(ed){lt.objs.editor.set_options.call(null,ed,new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"keyMap","keyMap",4174180847),"default"], null));
return lt.object.remove_tags.call(null,ed,new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword(null,"editor.keys.emacs","editor.keys.emacs",3283998978)], null));
});
lt.objs.sidebar.command.command.call(null,new cljs.core.PersistentArrayMap(null, 4, [new cljs.core.Keyword(null,"command","command",1964298941),new cljs.core.Keyword(null,"emacs.keymap-cmd","emacs.keymap-cmd",1777328545),new cljs.core.Keyword(null,"desc","desc",1016984067),"Emacs: map to CodeMirror's emacs keymap",new cljs.core.Keyword(null,"hidden","hidden",4091384092),true,new cljs.core.Keyword(null,"exec","exec",1017031683),(function (keys,km){var temp__4092__auto__ = ((CodeMirror.keyMap[(function (){var or__6757__auto__ = km;if(cljs.core.truth_(or__6757__auto__))
{return or__6757__auto__;
} else
{return "emacs";
}
})()])[keys]);if(cljs.core.truth_(temp__4092__auto__))
{var cmd = temp__4092__auto__;if(typeof cmd === 'string')
{return lt.objs.editor.__GT_cm_ed.call(null,lt.objs.editor.pool.last_active.call(null)).execCommand(cmd);
} else
{return cmd.call(null,lt.objs.editor.__GT_cm_ed.call(null,lt.objs.editor.pool.last_active.call(null)));
}
} else
{return null;
}
})], null));
lt.plugins.emacs.__BEH__activate_emacs = (function __BEH__activate_emacs(this$){if(cljs.core.truth_(CodeMirror.keyMap.emacs))
{} else
{lt.util.load.js.call(null,"core/node_modules/codemirror/emacs.js",new cljs.core.Keyword(null,"sync","sync",1017449997));
}
if(cljs.core.truth_(lt.object.has_tag_QMARK_.call(null,this$,new cljs.core.Keyword(null,"editor.keys.emacs","editor.keys.emacs",3283998978))))
{return null;
} else
{return lt.plugins.emacs.make_emacs_editor.call(null,this$);
}
});
lt.object.behavior_STAR_.call(null,new cljs.core.Keyword("lt.plugins.emacs","activate-emacs","lt.plugins.emacs/activate-emacs",2664292249),new cljs.core.Keyword(null,"reaction","reaction",4441361819),lt.plugins.emacs.__BEH__activate_emacs,new cljs.core.Keyword(null,"desc","desc",1016984067),"Emacs: Activate Emacs mode",new cljs.core.Keyword(null,"triggers","triggers",2516997421),new cljs.core.PersistentHashSet(null, new cljs.core.PersistentArrayMap(null, 1, [new cljs.core.Keyword(null,"object.instant","object.instant",773332388),null], null), null),new cljs.core.Keyword(null,"type","type",1017479852),new cljs.core.Keyword(null,"user","user",1017503549),new cljs.core.Keyword(null,"exclusive","exclusive",2700522000),new cljs.core.PersistentVector(null, 1, 5, cljs.core.PersistentVector.EMPTY_NODE, [new cljs.core.Keyword("lt.plugins.vim","activate-vim","lt.plugins.vim/activate-vim",4199850093)], null));
}
//# sourceMappingURL=emacs_compiled.js.map