Bingen Eguzkitza преди 5 години
родител
ревизия
f07484f3ca
променени са 2 файла, в които са добавени 30 реда и са изтрити 0 реда
  1. +1
    -0
      init.el
  2. +29
    -0
      lisp/init-typescript.el

+ 1
- 0
init.el Целия файл

@@ -83,6 +83,7 @@
(require 'init-pandoc)
(require 'init-csv)
(require 'init-javascript)
(require 'init-typescript)
(require 'init-php)
(require 'init-nxml)
(require 'init-html)

+ 29
- 0
lisp/init-typescript.el Целия файл

@@ -0,0 +1,29 @@
;;; package --- Typescript configuration

;;; Commentary:

;;; Code:
(require-package 'tide)

(defun setup-tide-mode ()
(interactive)
(tide-setup)
(flycheck-mode +1)
(setq flycheck-check-syntax-automatically '(save mode-enabled))
(eldoc-mode +1)
(tide-hl-identifier-mode +1)
;; company is an optional dependency. You have to
;; install it separately via package-install
;; `M-x package-install [ret] company`
(company-mode +1))

;; aligns annotation to the right hand side
(setq company-tooltip-align-annotations t)

;; formats the buffer before saving
(add-hook 'before-save-hook 'tide-format-before-save)

(add-hook 'typescript-mode-hook #'setup-tide-mode)

(provide 'init-typescript)
;;; init-typescript ends here

Loading…
Отказ
Запис