Skip to content

Commit a027ad2

Browse files
committed
Even more cleanup.
1 parent ba87e3c commit a027ad2

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

ts-comint.el

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
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.
22

33
;;; Copyright (C) 2008 Paul Huff
44
;;; Copyright (C) 2015 Stefano Mazzucco
@@ -9,7 +9,7 @@
99
;;; Version: 0.0.1
1010
;;; URL: https://github.com/josteink/ts-comint
1111
;;; Package-Requires: ()
12-
;;; Keywords: javascript, node, inferior-mode, convenience
12+
;;; Keywords: typescript, node, inferior-mode, convenience
1313

1414
;; This file is NOT part of GNU Emacs.
1515

@@ -49,8 +49,8 @@
4949
;; Away you go.
5050

5151
;; 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:
5454
;;
5555
;; (add-hook 'typescript-mode-hook
5656
;; (lambda ()
@@ -65,11 +65,11 @@
6565
(require 'comint)
6666

6767
(defgroup inferior-ts nil
68-
"Run a javascript process in a buffer."
68+
"Run a Typescript process in a buffer."
6969
:group 'inferior-ts)
7070

7171
(defcustom inferior-ts-program-command "tsun"
72-
"JavaScript interpreter."
72+
"Typescript interpreter."
7373
:group 'inferior-ts)
7474

7575
(defcustom inferior-ts-program-arguments nil
@@ -166,7 +166,7 @@ is run).
166166
(run-ts inferior-ts-program-command t)
167167
(comint-send-region inferior-ts-buffer start end)
168168
;; (comint-send-string inferior-ts-buffer "\n")
169-
(switch-to-js inferior-ts-buffer))
169+
(switch-to-ts inferior-ts-buffer))
170170

171171
;;;###autoload
172172
(defun ts-send-last-sexp-and-go ()
@@ -205,24 +205,24 @@ is run).
205205

206206
;;;###autoload
207207
(defun ts-load-file (filename)
208-
"Load a file in the javascript interpreter."
208+
"Load a file in the Typescript interpreter."
209209
(interactive "f")
210210
(let ((filename (expand-file-name filename)))
211211
(run-ts inferior-ts-program-command t)
212212
(comint-send-string inferior-ts-buffer (ts--guess-load-file-cmd filename))))
213213

214214
;;;###autoload
215215
(defun ts-load-file-and-go (filename)
216-
"Load a file in the javascript interpreter."
216+
"Load a file in the Typescript interpreter."
217217
(interactive "f")
218218
(let ((filename (expand-file-name filename)))
219219
(run-ts inferior-ts-program-command t)
220220
(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)))
222222

223223
;;;###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.
226226
With argument, position cursor at end of buffer."
227227
(interactive "P")
228228
(if (and inferior-ts-buffer (get-buffer inferior-ts-buffer))
@@ -240,7 +240,7 @@ With argument, position cursor at end of buffer."
240240

241241
;;;###autoload
242242
(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.
244244
245245
The following commands are available:
246246
\\{inferior-ts-mode-map}
@@ -252,7 +252,7 @@ inferior-ts-mode-hook (in that order).
252252
253253
You can send text to the inferior Typescript process from other buffers containing
254254
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.
256256
ts-send-region sends the current region to the Typescript process.
257257
"
258258
:group 'inferior-ts

0 commit comments

Comments
 (0)