all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Krishnakant <krmane@openmailbox.org>
To: "help-gnu-emacs@gnu.org" <help-gnu-emacs@gnu.org>
Subject: Re: need suggestions regarding modules for jquery
Date: Tue, 25 Apr 2017 13:58:23 +0530	[thread overview]
Message-ID: <6ab396ff-f61d-4640-bb5b-558e91ced649@openmailbox.org> (raw)
In-Reply-To: <8130fd44-02ec-dc04-2b28-b61dfb253e87@openmailbox.org>

Just an update,

I manage to get tern working with emacs.

Now the problem is that I somehow can't get jquery completion working.

I guess this could be called as off-topic but the point is that I am not 
gettting how I can get the connection between tern, jquery and emacs.

I have the tern-mode and company-tern working all right.  The only 
problem is that

I installed tern on Ubuntu 16.04 using npm install.

I also have a folder called node_modules in my home folder (~/node_modules).

I also have a .ternconfig file with jquery in the libs section.

Yet all except jquery functions get completed.

if I do document.ge I get every thing including getElementById (I have 
company's prefix set to 2).

Can any one suggest why jquery is being ignored?

I doubt this is to do with the way npm, node and tern are integrated 
with emacs.

Happy hacking.

Krishnakant.




On Sunday 23 April 2017 02:18 PM, Krishnakant wrote:
> Dear all,
>
> I have been frustrated in this search so far.
>
> I have a very simple issue yet no suggestion on the Internet seems to 
> work fine.
>
> I had previously asked help for company-web and had asked for some 
> guidance regarding the init configuration which I had then posted.
>
> However I did not get the desired end result.
>
> Now I am wondering if any one has any alternative suggestion on 
> modules for working with jquery?
>
> I tryed company-tern with an impression that it might work for jquery.
>
> But it has not worked.
>
> I need auto completion, code highlighting and block pairing (the 
> brackets etc are already handled by electric ).
>
> I would ideally need some module which works with javascript as such 
> and jquery in particular.
>
>
> Does any one have a better solution to company-web with web-mode?
>
> if not I won't mind using the former if it has certain more advantages 
> or if some one can help me configure it.
>
> I have actually added the company backend (add-to-list 
> 'company-backends 'company-tern)
>
> same for company-web-html.
>
> I also have the hooks properly initialise when js2-mode is active in a 
> buffer where a js file is open.
>
> But none of the features seem t to work.
>
> So as a last resort I thought it be better to ask on this list where 
> so many experts must be already using some thing very well.
>
> Happy hacking.
>
> Krishnakant.
>




      reply	other threads:[~2017-04-25  8:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-23  8:48 need suggestions regarding modules for jquery Krishnakant
2017-04-25  8:28 ` Krishnakant [this message]

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=6ab396ff-f61d-4640-bb5b-558e91ced649@openmailbox.org \
    --to=krmane@openmailbox.org \
    --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.