Add tide, configuration in progress

This commit is contained in:
Maciej Szlosarczyk 2017-09-06 12:00:50 +03:00
parent 7776d68b3b
commit a922e76b5f
No known key found for this signature in database
GPG key ID: 89B81875705031E6
3 changed files with 25 additions and 0 deletions

14
init.el
View file

@ -19,3 +19,17 @@
(provide 'init)
;;; init.el ends here
(custom-set-variables
;; custom-set-variables was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
'(package-selected-packages
(quote
(tide yaml-mode window-purpose web-mode ujelly-theme toml-mode smart-mode-line scala-mode rvm ruby-end rspec-mode robe rainbow-mode rainbow-delimiters racer pyenv-mode noctilux-theme monokai-theme markdown-mode less-css-mode json-reformat jade-mode indent-guide helm-themes helm-projectile helm-ag haskell-mode haml-mode groovy-mode flymake-ruby flymake-cursor flycheck flatui-theme exec-path-from-shell evil-nerd-commenter evil-magit evil-leader elpy dumb-jump dockerfile-mode diff-hl dash-at-point company-tern company-racer company-jedi column-enforce-mode color-theme-approximate base16-theme atom-one-dark-theme alchemist aggressive-indent ag))))
(custom-set-faces
;; custom-set-faces was added by Custom.
;; If you edit it by hand, you could mess it up, so be careful.
;; Your init file should contain only one such instance.
;; If there is more than one, they won't work right.
)

View file

@ -19,6 +19,14 @@
'((company-tern company-capf company-dabbrev-code company-yasnippet
company-files))))
;;========== Tide mode ============================
;; TODO: Figure out how to use tide with Emacs and NVM.
(defun tide-config-js ()
"Configure tide mode."
(interactive)
(tide-setup)
(eldoc-mode))
;;========== Hooks =================================
(add-hook 'js-mode-hook 'editor-config-js)
(add-hook 'js-mode-hook 'completion-config-js)

View file

@ -215,4 +215,7 @@
;; Javascript
(unless (package-installed-p 'company-tern)
(package-install 'company-tern))
(unless (package-installed-p 'tide)
(package-install 'tide))
;;; packages.el ends here