ac-typescript is typescript completion tool on auto-complete for Emacs. This contain emacs lisp and language service server is written by TypeScript for completion.
You have to install Node and be able to use npm before, but not have to install typescript by npm, because ac-typescript is already included them. Therefore, we recommend to install TypeScript.el that is major mode to edit Typescript.
Note: ac-typescript can run on Windows, but performance on Windows is less than on Linux.(Sorry, We do not test for MacOSX) So you will happy to use this on Windows rather than VisualStudio with TypeScript Plugin...
- You download or clone ac-typescript.
- Extract it and move to as you like if you download zipped archive. Skip this step when you choice clone this.
- You have to type
npm installin the extracted directory to install dependencies. - Put follow script into your init.el .
(add-to-list 'load-path "path/to/ac-typescript")
(require 'ac-typescript)
(setq ac-typescript-server/isense-location "path/to/bin/isense.js")
;; uncomment this If you want to change server port
;; (setq ac-typescript-server/server-port 9999)
(ac-typescript/start-server)
(add-hook 'typescript-mode-hook 'ac-typescript/ac-enable)