![]() ![]() Objects are just plain data-structures stored in an atom with a globally unique id. Light Table is organised around behaviors, objects and tags. Most of Light Table doesn't have docstrings, but this is still useful for library code. #LIGHTTABLE TREJO BRI HOW TO#If it isn't clear how to use a given function then using the searcher to find examples will also help.įinally, use the documentation searcher (ctrl-shift-d) for full-text search over the names and docstrings of all known vars. #LIGHTTABLE TREJO BRI FULL#In ClojureScript these features are only aware of vars that have been eval'd in the current compiler process, so be sure to eval the ns form at the top of the file to get the full effect.įor hunting down behaviors, objects and other things that don't live in vars use the searcher (ctrl-shift-f). to jump and ctrl-, to jump back) for ClojureScript and Clojure vars, all of which are very useful for exploring the codebase. The new Light Table release supports auto-complete (tab), inline docs (ctrl-d) and jump-to-definition (ctrl. Generally, we eval code as we write it and only compile with lein cljsbuild once if we need to restart Light Table. Try something simple like (js/alert "foo") to make sure it works. Now you should be able to eval ClojureScript code inside your current Light Table instance. When it's finished starting up it will ask you where to send the emitted JavaScript code - choose Light Table UI from the menu. Hit eval (ctrl-enter) somewhere in the file to start a ClojureScript compiler. If you don't, start with the Light Table tutorial.Īdd LightTable/src to your Light Table workspace and open src/lt/objs/jump_stack.cljs. I'll assume you already know how to eval code (ctrl-enter), how to open the command bar (ctrl-space) and how to open files with the navigator (ctrl-o). If a key is mapped to the command, it will be printed right below the command name in the command bar. When in doubt, you can look up the key sequence by name by pressing ctrl-space (yes, it's really ctrl on this one) and then typing part of the name of the command you want to use. ![]() Many (though not all) of the OS X hotkeys mentioned in the Light Table documentation use the cmd key instead of ctrl. You'll want at least the Clojure plugin and the Rainbow plugin.Īfter the initial setup, you can compile the ClojureScript source at any time with lein cljsbuild once. You can also either copy the plugins/ folder over too or git clone the ones you want to modify down from github. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |