def-docset

This commit is contained in:
Henrik Lissner 2016-05-24 22:09:50 -04:00
parent 99e2e4c5ea
commit ec9c12e17e
20 changed files with 42 additions and 21 deletions

View file

@ -6,8 +6,11 @@
:init (add-hook 'js2-mode-hook 'tern-mode)
:config
(def-repl! js2-mode nodejs-repl)
(def-docset! js2-mode "js,javascript,nodejs,angularjs,express,jquery,mongoose")
(def-company-backend! js2-mode (tern yasnippet))
(def-docset! js2-mode
("JavaScript" "jQuery" "jQuery_Mobile" "jQuery_UI" "AngularJS" "BackboneJS"
"D3JS" "EmberJS" "ExtJS" "KnockoutJS" "MarionetteJS" "MomentJS" "NodeJS"
"PrototypeJS" "RequireJS" "SailsJS" "UnderscoreJS" "VueJS" "ZeptoJS"))
(def-electric! js2-mode :chars (?\} ?\) ?.) :words ("||" "&&"))
(setq-default
js2-skip-preprocessor-directives t