From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Krishnakant Newsgroups: gmane.emacs.help Subject: Re: help correcting web-mode configuration Date: Sun, 12 Mar 2017 15:47:05 +0530 Message-ID: References: <8737ei28k7.fsf@gmail.com> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1489313877 31865 195.159.176.226 (12 Mar 2017 10:17:57 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Mar 2017 10:17:57 +0000 (UTC) User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0 Cc: "help-gnu-emacs@gnu.org" To: Danny YUE Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 12 11:17:51 2017 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cn0ZT-0007Cs-00 for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Mar 2017 11:17:51 +0100 Original-Received: from localhost ([::1]:46422 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cn0ZV-0004IO-IM for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Mar 2017 06:17:53 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:36750) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cn0Z3-0004IG-Il for help-gnu-emacs@gnu.org; Sun, 12 Mar 2017 06:17:26 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cn0Z0-0002mc-DZ for help-gnu-emacs@gnu.org; Sun, 12 Mar 2017 06:17:25 -0400 Original-Received: from lb1.openmailbox.org ([5.79.108.160]:48065 helo=mail.openmailbox.org) by eggs.gnu.org with esmtps (TLS1.0:DHE_RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cn0Z0-0002mA-36 for help-gnu-emacs@gnu.org; Sun, 12 Mar 2017 06:17:22 -0400 Original-Received: by mail.openmailbox.org (Postfix, from userid 20002) id B89C751FD37; Sun, 12 Mar 2017 11:17:16 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1489313836; bh=FX2IatMR0qvji2Blw2rVZn3mQwP/sPXdlJ4rdq/UAyA=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=JQ2cPSGcFY01EBLPzUU/wQtHo/IeVglK6hMyhud+ULW4R/PY4oqFOLeVYr6gvrEST gPeym5qK3D092bSlg9blyF1VGh56A5zsdmyOx+m8C1ItecGtY7c69dbpVwHkgj8aWK 7yBnQ1NhrAimd1F1Gnf2rq9C4foS5FVHTNx9ce7k= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1489313836; bh=FX2IatMR0qvji2Blw2rVZn3mQwP/sPXdlJ4rdq/UAyA=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=JQ2cPSGcFY01EBLPzUU/wQtHo/IeVglK6hMyhud+ULW4R/PY4oqFOLeVYr6gvrEST gPeym5qK3D092bSlg9blyF1VGh56A5zsdmyOx+m8C1ItecGtY7c69dbpVwHkgj8aWK 7yBnQ1NhrAimd1F1Gnf2rq9C4foS5FVHTNx9ce7k= In-Reply-To: <8737ei28k7.fsf@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] [fuzzy] X-Received-From: 5.79.108.160 X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.org gmane.emacs.help:112542 Archived-At: On Sunday 12 March 2017 02:09 PM, Danny YUE wrote: > Hi, > > I barely use web-mode because I seldom write HTML etc, but I use > company-mode a lot and find it sometimes tricky to setup. > > I noticed that you set company-backends locally, but you have to make > sure it's actually being called. > > You can tackle it down by 2 steps: > 1. Try command 'company-web-html' or something provided by your company > web-mode package. If it's giving you the completions, this step is > passed. Otherwise, you have problem setting up the package itself. Step one pass because I end up doing this manually and it does give me completions. > > 2. Try command 'company-diag' to see what back-end it's using currently, > and if the back-end it's using is not what you want, maybe you have to > set the company-backends without append. For example: > > (defun web-mode-setup-company () > (make-local-variable 'company-backends) > (setq company-backends '(company-web-html))) > (add-hook 'web-mode-hook 'web-mode-setup-company) > > I will try this in an hour on my laptop with Emacs. Thanks a lot. Krishnakant.