add smartparens mode

This commit is contained in:
Andrea Moretti 2018-03-31 12:52:00 +02:00 committed by syl20bnr
parent d8479b8f72
commit 3a516438cd

View file

@ -15,6 +15,7 @@
company
eldoc
flycheck
smartparens
tide
typescript-mode
web-mode
@ -40,6 +41,14 @@
(flycheck-add-mode 'typescript-tide 'typescript-tsx-mode))
(flycheck-add-mode 'typescript-tslint 'typescript-tsx-mode))
(defun typescript/post-init-smartparens ()
(if dotspacemacs-smartparens-strict-mode
(add-hook 'typescript-tsx-mode-hook #'smartparens-strict-mode)
(add-hook 'typescript-tsx-mode-hook #'smartparens-mode))
(if dotspacemacs-smartparens-strict-mode
(add-hook 'typescript-mode-hook #'smartparens-strict-mode)
(add-hook 'typescript-mode-hook #'smartparens-mode)))
(defun typescript/init-tide ()
(use-package tide
:defer t