* Configuration of js2-mode @ 2015-04-15 8:17 azubi 2015-04-15 12:33 ` Nicolas Petton 0 siblings, 1 reply; 3+ messages in thread From: azubi @ 2015-04-15 8:17 UTC (permalink / raw) To: help-gnu-emacs Hi, I'm using emacs and js2-mode to develop (very) simple three.js application. Unfortunately, js2-mode shows every object and variables provided by the three.js library as unknow or undefined. The library is included into the html page (with a <script> marker) and not into my own script. Is there a way to say to js2-mode that it should also consider the classes and variables provided by the external library? Thank you in advance for your help ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Configuration of js2-mode 2015-04-15 8:17 Configuration of js2-mode azubi @ 2015-04-15 12:33 ` Nicolas Petton 2015-04-15 15:11 ` Dmitry Gutov 0 siblings, 1 reply; 3+ messages in thread From: Nicolas Petton @ 2015-04-15 12:33 UTC (permalink / raw) To: azubi; +Cc: help-gnu-emacs [-- Attachment #1: Type: text/plain, Size: 579 bytes --] Hi! azubi writes: > I'm using emacs and js2-mode to develop (very) simple three.js > application. Unfortunately, js2-mode shows every object and variables > provided by the three.js library as unknow or undefined. The library is > included into the html page (with a <script> marker) and not into my own > script. Is there a way to say to js2-mode that it should also consider > the classes and variables provided by the external library? You can customize `js2-global-externs' to do just that. Cheers, Nico -- Nicolas Petton http://nicolas-petton.fr [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 512 bytes --] ^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Configuration of js2-mode 2015-04-15 12:33 ` Nicolas Petton @ 2015-04-15 15:11 ` Dmitry Gutov 0 siblings, 0 replies; 3+ messages in thread From: Dmitry Gutov @ 2015-04-15 15:11 UTC (permalink / raw) To: Nicolas Petton, azubi; +Cc: help-gnu-emacs On 04/15/2015 03:33 PM, Nicolas Petton wrote: > You can customize `js2-global-externs' to do just that. Or use a JSLint-style /*global ...*/ declaration: http://www.jslint.com/lint.html ^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2015-04-15 15:11 UTC | newest] Thread overview: 3+ messages (download: mbox.gz follow: Atom feed -- links below jump to the message on this page -- 2015-04-15 8:17 Configuration of js2-mode azubi 2015-04-15 12:33 ` Nicolas Petton 2015-04-15 15:11 ` Dmitry Gutov
Code repositories for project(s) associated with this external index https://git.savannah.gnu.org/cgit/emacs.git https://git.savannah.gnu.org/cgit/emacs/org-mode.git This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.