Browse Source

Set live JS update to C-c C-k

workspaces
Nicolas Petton 4 years ago
parent
commit
f29f6742ee
3 changed files with 14 additions and 14 deletions
  1. +12
    -12
      doc/Indium.texi
  2. +1
    -1
      indium-interaction.el
  3. +1
    -1
      sphinx-doc/code-evaluation.rst

+ 12
- 12
doc/Indium.texi View File

@ -138,7 +138,7 @@ The inspector
@end menu
@node Table of contents,Indices and tables,Top,Top
@anchor{index table-of-contents}@anchor{1}@anchor{index indium}@anchor{2}
@anchor{index indium}@anchor{1}@anchor{index table-of-contents}@anchor{2}
@chapter Table of contents
@ -153,7 +153,7 @@ The inspector
@end menu
@node Installation,Getting up and running,,Table of contents
@anchor{installation installation}@anchor{3}@anchor{installation doc}@anchor{4}
@anchor{installation doc}@anchor{3}@anchor{installation installation}@anchor{4}
@section Installation
@ -220,7 +220,7 @@ Add the following to your Emacs configuration:
@end example
@node Getting up and running,The REPL,Installation,Table of contents
@anchor{setup doc}@anchor{7}@anchor{setup getting-up-and-running}@anchor{8}@anchor{setup up-and-running}@anchor{9}
@anchor{setup doc}@anchor{7}@anchor{setup up-and-running}@anchor{8}@anchor{setup getting-up-and-running}@anchor{9}
@section Getting up and running
@ -263,7 +263,7 @@ Connecting Indium to the node process will open a debugger on the first line of
the application code if you passed the CLI argument @code{--debug-brk}.
@node Chrome/Chromium,Using local files when debugging,NodeJS,Getting up and running
@anchor{setup chrome}@anchor{c}@anchor{setup chrome-chromium}@anchor{d}
@anchor{setup chrome-chromium}@anchor{c}@anchor{setup chrome}@anchor{d}
@subsection Chrome/Chromium
@ -337,7 +337,7 @@ directory!
@end cartouche
@node The REPL,Interaction in JS buffers,Getting up and running,Table of contents
@anchor{repl the-repl}@anchor{10}@anchor{repl repl}@anchor{11}@anchor{repl doc}@anchor{12}
@anchor{repl repl}@anchor{10}@anchor{repl doc}@anchor{11}@anchor{repl the-repl}@anchor{12}
@section The REPL
@ -354,7 +354,7 @@ directory!
A REPL (Read Eval Print Loop) buffer is automatically open when a new Indium
connection is made (see @ref{9,,Getting up and running}).
connection is made (see @ref{8,,Getting up and running}).
@image{repl,,,,png}
@ -488,7 +488,7 @@ the current stack frame, and will be able to access local variables from the
stack, etc.
@node Interaction in JS buffers,The stepping debugger,The REPL,Table of contents
@anchor{code-evaluation interaction}@anchor{19}@anchor{code-evaluation doc}@anchor{1a}@anchor{code-evaluation interaction-in-js-buffers}@anchor{1b}
@anchor{code-evaluation interaction-in-js-buffers}@anchor{19}@anchor{code-evaluation doc}@anchor{1a}@anchor{code-evaluation interaction}@anchor{1b}
@section Interaction in JS buffers
@ -530,7 +530,7 @@ The entire buffer can be evaluated with @code{M-x indium-eval-buffer}.
Press @code{C-c C-z} from any buffer with @code{indium-interaction-mode} turned on to
switch back to the REPL buffer (see @ref{11,,The REPL}).
switch back to the REPL buffer (see @ref{10,,The REPL}).
@node Adding and removing breakpoints,Live code update hot-swapping JavaScript sources,Switching to the REPL buffer,Interaction in JS buffers
@anchor{code-evaluation adding-and-removing-breakpoints}@anchor{1e}
@ -605,7 +605,7 @@ To enable live updates, make sure Indium is set up to use local files (see
@itemize -
@item
@code{C-c u}: Updates the runtime JavaScript source with the contents of the
@code{C-c C-k}: Updates the runtime JavaScript source with the contents of the
current buffer.
@item
@ -614,7 +614,7 @@ script JavaScript source after each buffer save.
@end itemize
@node The stepping debugger,The inspector,Interaction in JS buffers,Table of contents
@anchor{debugger doc}@anchor{21}@anchor{debugger debugger}@anchor{1f}@anchor{debugger the-stepping-debugger}@anchor{22}
@anchor{debugger the-stepping-debugger}@anchor{21}@anchor{debugger debugger}@anchor{1f}@anchor{debugger doc}@anchor{22}
@section The stepping debugger
@ -624,8 +624,8 @@ script JavaScript source after each buffer save.
Indium features an object inspector that can be open on any object reference
from a REPL buffer (see @ref{11,,The REPL}), the debugger (see @ref{1f,,The stepping debugger}), or
the result of any evaluation of JavaScript code (see @ref{19,,Interaction in JS buffers}).
from a REPL buffer (see @ref{10,,The REPL}), the debugger (see @ref{1f,,The stepping debugger}), or
the result of any evaluation of JavaScript code (see @ref{1b,,Interaction in JS buffers}).
To inspect the result of the evaluation of an expression, press @code{C-c M-i}. An
inspector buffer will pop up. You can also press @code{RET} or left click on


+ 1
- 1
indium-interaction.el View File

@ -144,7 +144,7 @@ current buffer."
(define-key map (kbd "C-x C-e") #'indium-eval-last-node)
(define-key map (kbd "C-c M-i") #'indium-inspect-last-node)
(define-key map (kbd "C-c C-z") #'indium-switch-to-repl-buffer)
(define-key map (kbd "C-c u") #'indium-update-script-source)
(define-key map (kbd "C-c C-k") #'indium-update-script-source)
(define-key map (kbd "C-c b b") #'indium-toggle-breakpoint)
(define-key map (kbd "C-c b K") #'indium-remove-all-breakpoints-from-buffer)
map))


+ 1
- 1
sphinx-doc/code-evaluation.rst View File

@ -70,7 +70,7 @@ lexical closures.
To enable live updates, make sure Indium is set up to use local files (see
:ref:`local-files`).
- ``C-c u``: Updates the runtime JavaScript source with the contents of the
- ``C-c C-k``: Updates the runtime JavaScript source with the contents of the
current buffer.
- ``(setq indium-update-script-on-save t)``: Automatically update the runtime
script JavaScript source after each buffer save.

Loading…
Cancel
Save