Update config for tern to work properly
This commit is contained in:
parent
c48d9754c6
commit
14e4e9642a
3 changed files with 4 additions and 2 deletions
|
|
@ -24,12 +24,12 @@
|
|||
(yas-global-mode 1)
|
||||
|
||||
(setq-default company-backends '(company-capf ;; Backend for default complete-at-point function
|
||||
company-tern ;; Javascript
|
||||
company-keywords ;; Keyword list for all languages
|
||||
company-yasnippet ;; Snippets for all programming languages
|
||||
company-elisp ; Emacs Lisp
|
||||
company-clang company-cmake ;; C
|
||||
company-robe ;; Ruby
|
||||
company-tern ;; Javascript
|
||||
company-ansible ;; Ansible
|
||||
alchemist-company ;; Elixir
|
||||
company-racer ;; Rust
|
||||
|
|
|
|||
1
20web.el
1
20web.el
|
|
@ -1,5 +1,6 @@
|
|||
;; Use js2-mode for javascript editing
|
||||
(add-to-list 'auto-mode-alist '("\\.js\\'" . js2-mode))
|
||||
(add-to-list 'auto-mode-alist '("\\.json\\'" . js2-mode))
|
||||
|
||||
;; Tern is used for completion
|
||||
(add-hook 'js2-mode-hook 'tern-mode)
|
||||
|
|
|
|||
3
init.el
3
init.el
|
|
@ -79,6 +79,7 @@
|
|||
;; Text files
|
||||
yaml-mode
|
||||
markdown-mode
|
||||
gitignore-mode
|
||||
)
|
||||
)
|
||||
|
||||
|
|
@ -114,7 +115,7 @@
|
|||
;; If there is more than one, they won't work right.
|
||||
'(package-selected-packages
|
||||
(quote
|
||||
(indium js2-mode keyfreq company-web visual-regexp enh-ruby-mode counsel-projectile counsel ivy flycheck-rust flycheck racer rust-mode hydra markdown-mode solarized-theme company-ansible alchemist window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode ruby-end web-mode rvm dash-at-point robe base16-theme exec-path-from-shell))))
|
||||
(gitignore-mode js2-mode keyfreq company-web visual-regexp enh-ruby-mode counsel-projectile counsel ivy flycheck-rust flycheck racer rust-mode hydra markdown-mode solarized-theme company-ansible alchemist window-purpose column-enforce-mode yaml-mode ansible dockerfile-mode ruby-end web-mode rvm dash-at-point robe base16-theme exec-path-from-shell))))
|
||||
(custom-set-faces
|
||||
;; custom-set-faces was added by Custom.
|
||||
;; If you edit it by hand, you could mess it up, so be careful.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue