Skip to content

Commit

Permalink
Merge pull request #6 from waymondo/master
Browse files Browse the repository at this point in the history
Make cmd argument optional, since its handling is optional
  • Loading branch information
josteink authored Dec 19, 2018
2 parents 8817dc7 + 3370c13 commit b280cfe
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 1 deletion.
12 changes: 12 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,15 @@ interpreter inside of typescript-mode.
(local-set-key (kbd "C-c C-b") 'ts-send-buffer-and-go)
(local-set-key (kbd "C-c l") 'ts-load-file-and-go)))
#+END_SRC

* ~repl-toggle~ compatibility

~ts-comint~ is [[https://github.com/tomterl/repl-toggle][~repl-toggle~]] compatible. To configure, add ~run-ts~
for ~typescript-mode~ to ~rtog/mode-repl-alist~ like so:

#+BEGIN_SRC elisp
;; when configuring all repl toggle mapping
(setq rtog/mode-repl-alist '((typescript-mode . run-ts)))
;; or later
(push '(typescript-mode . run-ts) rtog/mode-repl-alist)
#+END_SRC
2 changes: 1 addition & 1 deletion ts-comint.el
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@
"\"\n"))

;;;###autoload
(defun run-ts (cmd &optional dont-switch-p)
(defun run-ts (&optional cmd dont-switch-p)
"Run an inferior Typescript process, via buffer `*Typescript*'.
If there is a process already running in `*Typescript*', switch
to that buffer. With argument `CMD', allows you to edit the
Expand Down

0 comments on commit b280cfe

Please sign in to comment.