diff --git a/init.el b/init.el index ca70554..4cec864 100644 --- a/init.el +++ b/init.el @@ -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. + ) diff --git a/languages/js.el b/languages/js.el index 1a8c809..b369cd9 100644 --- a/languages/js.el +++ b/languages/js.el @@ -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) diff --git a/packages.el b/packages.el index 4d75327..c6eac8b 100644 --- a/packages.el +++ b/packages.el @@ -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