[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

help figuring out problem with auto completion in web-mode

From: Krishnakant
Subject: help figuring out problem with auto completion in web-mode
Date: Mon, 10 Apr 2017 22:43:36 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0


I am asking this question after doing a lot of trial and error with the modest knowledge I have gained about configuring Emacs.

I use web-mode with company and no matter what I do it is not giving auto completion options, specially while doing javascript programming including jquery.

Here is the relevant part of the init file.

(require 'web-mode)

(require 'company)
(require 'company-web-html) ; load company mode html backend
(add-hook 'web-mode-hook 'delete-selection-mode)
(add-hook 'web-mode-hook 'company-mode)
(add-hook 'web-mode-hook 'linum-mode)
(add-to-list 'company-backends 'company-web-html)
(add-to-list 'company-backends 'company-jedi)

The last line I have particularly included because I thought perhaps I should have not added it explicitly because Python mode is already using elpy and that includes company-mode.

But removing that does not help me either.

WWell, with Python every thing works like a charm.

I type 5 characters and auto complete happens.

This is due to the fact that I have set company to behave like that.

But in web-mode I always have to attempt auto completion.

I also have my tags file loaded so I guess it is taking a lot from the tabs file and not due to company-mode auto completion in web-mode.

Can some one possibly suggest what could be the problem>

Happy hacking.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]