forked from LightTable/LightTable
-
Notifications
You must be signed in to change notification settings - Fork 0
For Users
Kolya Ay edited this page Jan 22, 2014
·
3 revisions
Start LT. Open a new file by pressing Ctrl-N
Set syntax to Clojure (Ctrl-Space
to open the command bar, then type/select 'Set editor syntax', type/select Clojure)
type (+ 1 2) Ctrl-Enter
(Cmd-Return
on Mac)
This will tell LT to install dependencies. Then eval that expression.
Press Ctrl-Space
to show the command bar, then
type "repl" in the command search box, select one item to run it:
- Open a clojure instarepl
- Make current editor an instarepl
instarepl currently only works for clojure files (.clj).
- Mac:
~/Library/Application Support/LightTable/settings/
- Linux:
~/.config/LightTable/settings/
- Windows:
%APPDATALOCAL%/LightTable/settings/
You may want to
-
Check the shortcuts. Type Ctrl-Space shortcut Enter
The basic shortcuts
Ctrl-W close tab Ctrl-O open file Ctrl-N new file Ctrl-F find Ctrl-Space show command bar Cmd-digit switch to the Nth tab (Ctrl-digit on Linux)
-
To change various settings type Ctrl-Space
Settings: User behaviors
- Change a theme by editing the string theme name in (:lt.objs.style/set-theme "default") for example (:lt.objs.style/set-theme "ibdknox")
- Try vim mode by adding (:lt.plugins.vim/activate-vim)
- Try emacs mode by adding (:lt.plugins.emacs/activate-emacs)
- Contribute to this wiki page. Questions and updates welcome.
- Getting the feel for the Light Table's instarepl by Marian Schubert
- Set of screencasts on Clojure programming in LightTable by James Trunk
- Set of screencasts on ClojureScript programmin in LightTable by Zubair Quraishi
- ClojureScript Analysis & Compilation in LightTable by David Nolen
- Leveraging custom expressions to write Idiomatic Clojure code by Daniel Ribeiro