Add tide, configuration in progress
This commit is contained in:
parent
7776d68b3b
commit
a922e76b5f
3 changed files with 25 additions and 0 deletions
14
init.el
14
init.el
|
|
@ -19,3 +19,17 @@
|
||||||
|
|
||||||
(provide 'init)
|
(provide 'init)
|
||||||
;;; init.el ends here
|
;;; 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.
|
||||||
|
)
|
||||||
|
|
|
||||||
|
|
@ -19,6 +19,14 @@
|
||||||
'((company-tern company-capf company-dabbrev-code company-yasnippet
|
'((company-tern company-capf company-dabbrev-code company-yasnippet
|
||||||
company-files))))
|
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 =================================
|
;;========== Hooks =================================
|
||||||
(add-hook 'js-mode-hook 'editor-config-js)
|
(add-hook 'js-mode-hook 'editor-config-js)
|
||||||
(add-hook 'js-mode-hook 'completion-config-js)
|
(add-hook 'js-mode-hook 'completion-config-js)
|
||||||
|
|
|
||||||
|
|
@ -215,4 +215,7 @@
|
||||||
;; Javascript
|
;; Javascript
|
||||||
(unless (package-installed-p 'company-tern)
|
(unless (package-installed-p 'company-tern)
|
||||||
(package-install 'company-tern))
|
(package-install 'company-tern))
|
||||||
|
|
||||||
|
(unless (package-installed-p 'tide)
|
||||||
|
(package-install 'tide))
|
||||||
;;; packages.el ends here
|
;;; packages.el ends here
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue