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:57:51 +0530 Message-ID: <4aa2cd16-09f4-f786-eab5-cd0456911ee3@openmailbox.org> 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 1489314513 26461 195.159.176.226 (12 Mar 2017 10:28:33 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 12 Mar 2017 10:28:33 +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:28:28 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 1cn0ji-00063Z-SU for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Mar 2017 11:28:27 +0100 Original-Received: from localhost ([::1]:46450 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cn0jo-0005Ou-KU for geh-help-gnu-emacs@m.gmane.org; Sun, 12 Mar 2017 06:28:32 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:38415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cn0jM-0005Oo-4w for help-gnu-emacs@gnu.org; Sun, 12 Mar 2017 06:28:05 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cn0jH-0007Lw-Er for help-gnu-emacs@gnu.org; Sun, 12 Mar 2017 06:28:04 -0400 Original-Received: from lb1.openmailbox.org ([5.79.108.160]:52947 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 1cn0jH-0007Lq-6c for help-gnu-emacs@gnu.org; Sun, 12 Mar 2017 06:27:59 -0400 Original-Received: by mail.openmailbox.org (Postfix, from userid 20002) id 1FCCC522D6E; Sun, 12 Mar 2017 11:27:55 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1489314476; bh=EzEu7ZnyUemhjBv53GYj8o3dMYsUgt4clS3rWkBMI+E=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=TwOw7aDffcnzktFA8BHoM2jXNYNwXJsqI0r/vCTUkTqV0v2cD0xHWu5lYtl0CkAh4 KR6Kd3M9vNCiHbb9u/PvIHRr3QkawlJRi8oVea3u0OYBDAYjtGfkHsD/kP3CZxSS+P TkA4wUKVoq3h3UY059b9vcQAei9vcc9lZ5ad6DtE= DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=openmailbox.org; s=openmailbox; t=1489314475; bh=EzEu7ZnyUemhjBv53GYj8o3dMYsUgt4clS3rWkBMI+E=; h=Subject:To:References:Cc:From:Date:In-Reply-To:From; b=ea5NpVvQP0wmECB1fo3MN12TyMk/Qi1JC86+3N9agfADbmudE4awhol1C9nrpuKly Gjp3s8nP7qlrBUlf94x4R+y4T9o0KqterWbzKJi/NPeTmnrRC9K+ydZEXgWwLtf99w jOo99ibZj5Xr7jdiAxGXo2G15Zs9pROIfrELlzUo= 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:112543 Archived-At: Hi Danny 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. > > > 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) > This is the output from company-diag Used backend: company-web-html Prefix: nil Completions: none I get same result of company-diag even after adding your code to init.el Happy hacking. Krishnakant.