All Projects → emacs-typescript → ts-comint

emacs-typescript / ts-comint

Licence: GPL-3.0 License
ts-comint will send the code from Emacs into a Typescript REPL.

Programming Languages

emacs lisp
2029 projects

Projects that are alternatives of or similar to ts-comint

ReplCustoms
A database of users, posts, and comments from the ReplTalk API
Stars: ✭ 17 (-39.29%)
Mutual labels:  repl
ts-c99-compiler
ANSI C 16bit Compiler + NASM Assembler + Intel 8086 / 80186 + X87 emulator written entirely in TypeScript
Stars: ✭ 78 (+178.57%)
Mutual labels:  repl
ede-php-autoload
PHP autoloading simulation for Emacs' Semantic
Stars: ✭ 23 (-17.86%)
Mutual labels:  emacs-packages
clojure
Practicalli Clojure REPL Driven Development
Stars: ✭ 40 (+42.86%)
Mutual labels:  repl
moses-smt
Dock You a Moses: Moses Statistical MT in a container
Stars: ✭ 12 (-57.14%)
Mutual labels:  repl
jsxt
The collection of Javascript / JScript / VBScript extensions, tools and more
Stars: ✭ 23 (-17.86%)
Mutual labels:  repl
aik
Frontend Playground
Stars: ✭ 43 (+53.57%)
Mutual labels:  repl
minicpp
A REPL-style development environment for small C++ snippets
Stars: ✭ 46 (+64.29%)
Mutual labels:  repl
emacs-bind-map
Bind personal keymaps in multiple locations
Stars: ✭ 55 (+96.43%)
Mutual labels:  emacs-packages
sbcli
A REPL for my SBCL needs
Stars: ✭ 68 (+142.86%)
Mutual labels:  repl
repline
Haskeline wrapper for GHCi-like REPL interfaces
Stars: ✭ 98 (+250%)
Mutual labels:  repl
await-outside
Await outside of async functions
Stars: ✭ 19 (-32.14%)
Mutual labels:  repl
cuic
Clojure UI testing with Chrome
Stars: ✭ 23 (-17.86%)
Mutual labels:  repl
replay-csharp
An editable C# REPL (Read Eval Print Loop) powered by Roslyn and .NET Core
Stars: ✭ 69 (+146.43%)
Mutual labels:  repl
org-babel-eval-in-repl
Send and eval org-mode babel code blocks in various REPLs (therefore it's async)
Stars: ✭ 49 (+75%)
Mutual labels:  repl
pytezos
🐍 Python SDK & CLI for Tezos | Michelson REPL and testing framework
Stars: ✭ 93 (+232.14%)
Mutual labels:  repl
ptrepl
Run command as REPL with completion(based on prompt_toolkit)
Stars: ✭ 38 (+35.71%)
Mutual labels:  repl
retro12
This repo is retired. See http://forthworks.com:8000/
Stars: ✭ 18 (-35.71%)
Mutual labels:  repl
replete-android
ClojureScript REPL Android app
Stars: ✭ 63 (+125%)
Mutual labels:  repl
magic-console
Interactive programming for Atom
Stars: ✭ 13 (-53.57%)
Mutual labels:  repl

ts-comint.el (v0.0.1)

Run a TypeScript interpreter in an inferior process window

This repo is directly forked from js-comint to support TypeScript instead.

Prerequisites

ts-comint depends on the following components:

To use ts-comint these components must be installed on your system.

To install these run the following commands, or whatever equivalents your system provides:

apt-get install node
npm install -g tsun

Installation

From MELPA

To install it all you need to do is issue the following command:

M-x package-install<RET>ts-comint

From Source

You can also download the source and use that directly.

To do that, place the ts-comint.el-file somewhere (say $HOME/mylisp/) and then insert the following code in your $HOME/.emacs.d/init.el-file:

(add-to-list 'load-path "~/mylisp/")
(require 'ts-comint)

Usage

After installation, do M-x run-ts to create a comint buffer with the Typescript interpreter.

You can add the following couple of lines to your .emacs to take advantage of cool key bindings for sending things to the Typescript interpreter inside of typescript-mode.

(add-hook 'typescript-mode-hook
          (lambda ()
            (local-set-key (kbd "C-x C-e") 'ts-send-last-sexp)
            (local-set-key (kbd "C-M-x") 'ts-send-last-sexp-and-go)
            (local-set-key (kbd "C-c b") 'ts-send-buffer)
            (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)))

repl-toggle compatibility

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

;; 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)
Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].