1
- ; ;; ts-comint.el --- Run a JavaScript interpreter in an inferior process window.
1
+ ; ;; ts-comint.el --- Run a Typescript interpreter in an inferior process window.
2
2
3
3
; ;; Copyright (C) 2008 Paul Huff
4
4
; ;; Copyright (C) 2015 Stefano Mazzucco
9
9
; ;; Version: 0.0.1
10
10
; ;; URL: https://github.com/josteink/ts-comint
11
11
; ;; Package-Requires: ()
12
- ; ;; Keywords: javascript , node, inferior-mode, convenience
12
+ ; ;; Keywords: typescript , node, inferior-mode, convenience
13
13
14
14
; ; This file is NOT part of GNU Emacs.
15
15
49
49
; ; Away you go.
50
50
51
51
; ; You can add the following couple of lines to your .emacs to take advantage of
52
- ; ; cool keybindings for sending things to the javascript interpreter inside
53
- ; ; of Steve Yegge's most excellent js2 -mode.
52
+ ; ; cool keybindings for sending things to the typescript interpreter inside
53
+ ; ; of typescript -mode:
54
54
; ;
55
55
; ; (add-hook 'typescript-mode-hook
56
56
; ; (lambda ()
65
65
(require 'comint )
66
66
67
67
(defgroup inferior-ts nil
68
- " Run a javascript process in a buffer."
68
+ " Run a Typescript process in a buffer."
69
69
:group 'inferior-ts )
70
70
71
71
(defcustom inferior-ts-program-command " tsun"
72
- " JavaScript interpreter."
72
+ " Typescript interpreter."
73
73
:group 'inferior-ts )
74
74
75
75
(defcustom inferior-ts-program-arguments nil
@@ -166,7 +166,7 @@ is run).
166
166
(run-ts inferior-ts-program-command t )
167
167
(comint-send-region inferior-ts-buffer start end)
168
168
; ; (comint-send-string inferior-ts-buffer "\n")
169
- (switch-to-js inferior-ts-buffer))
169
+ (switch-to-ts inferior-ts-buffer))
170
170
171
171
;;;### autoload
172
172
(defun ts-send-last-sexp-and-go ()
@@ -205,24 +205,24 @@ is run).
205
205
206
206
;;;### autoload
207
207
(defun ts-load-file (filename )
208
- " Load a file in the javascript interpreter."
208
+ " Load a file in the Typescript interpreter."
209
209
(interactive " f" )
210
210
(let ((filename (expand-file-name filename)))
211
211
(run-ts inferior-ts-program-command t )
212
212
(comint-send-string inferior-ts-buffer (ts--guess-load-file-cmd filename))))
213
213
214
214
;;;### autoload
215
215
(defun ts-load-file-and-go (filename )
216
- " Load a file in the javascript interpreter."
216
+ " Load a file in the Typescript interpreter."
217
217
(interactive " f" )
218
218
(let ((filename (expand-file-name filename)))
219
219
(run-ts inferior-ts-program-command t )
220
220
(comint-send-string inferior-ts-buffer (ts--guess-load-file-cmd filename))
221
- (switch-to-js inferior-ts-buffer)))
221
+ (switch-to-ts inferior-ts-buffer)))
222
222
223
223
;;;### autoload
224
- (defun switch-to-js (eob-p )
225
- " Switch to the javascript process buffer.
224
+ (defun switch-to-ts (eob-p )
225
+ " Switch to the Typescript process buffer.
226
226
With argument, position cursor at end of buffer."
227
227
(interactive " P" )
228
228
(if (and inferior-ts-buffer (get-buffer inferior-ts-buffer))
@@ -240,7 +240,7 @@ With argument, position cursor at end of buffer."
240
240
241
241
;;;### autoload
242
242
(define-derived-mode inferior-ts-mode comint-mode " Inferior Typescript"
243
- " Major mode for interacting with an inferior javascript process.
243
+ " Major mode for interacting with an inferior Typescript process.
244
244
245
245
The following commands are available:
246
246
\\ {inferior-ts-mode-map}
@@ -252,7 +252,7 @@ inferior-ts-mode-hook (in that order).
252
252
253
253
You can send text to the inferior Typescript process from other buffers containing
254
254
Typescript source.
255
- switch-to-js switches the current buffer to the Typescript process buffer.
255
+ switch-to-ts switches the current buffer to the Typescript process buffer.
256
256
ts-send-region sends the current region to the Typescript process.
257
257
"
258
258
:group 'inferior-ts
0 commit comments