[Top][All Lists]

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

help correcting web-mode configuration

From: Krishnakant
Subject: help correcting web-mode configuration
Date: Sun, 12 Mar 2017 12:37:46 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.7.0

Hello all,

I previously posted on this list regarding a similar issue.

But I guess my explanation may be a bit confusing.

So I will explain it again.

Basically I have decided to use web-mode for my html and javascript work.

I took the decision because I also use Python based tenplating languages like jinja.

Here is my configuration part in context.

(require 'web-mode)
(require 'company)
(require 'company-web-html) ; load company mode html backend

(add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.js\\'" . web-mode))

(add-hook 'web-mode-hook '(lambda () ;; Company-mode (set (make-local-variable 'company-backends) (append company-backends '((company-web-html company-yasnippet))))

No matter what I do, the auto complete using company just does not work in web-mode.

Also I am not able to get the auto tag completion working.

Can some one help?

Happy hacking.


reply via email to

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