all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Nicolas Petton <nicolas@petton.fr>
To: azubi <azubi@toto.invalid>
Cc: help-gnu-emacs@gnu.org
Subject: Re: Configuration of js2-mode
Date: Wed, 15 Apr 2015 14:33:19 +0200	[thread overview]
Message-ID: <874mohwoz4.fsf@petton.fr> (raw)
In-Reply-To: <mgl6rp$2m5$1@shakotay.alphanet.ch>

[-- 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 --]

  reply	other threads:[~2015-04-15 12:33 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-04-15  8:17 Configuration of js2-mode azubi
2015-04-15 12:33 ` Nicolas Petton [this message]
2015-04-15 15:11   ` Dmitry Gutov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=874mohwoz4.fsf@petton.fr \
    --to=nicolas@petton.fr \
    --cc=azubi@toto.invalid \
    --cc=help-gnu-emacs@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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.