help-gnu-emacs
[Top][All Lists]
Advanced

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

Fwd: company works with python-mode but not with web-mode after this con


From: Krishnakant
Subject: Fwd: company works with python-mode but not with web-mode after this configuration
Date: Sat, 22 Apr 2017 15:32:19 +0530
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.8.0




-------- Forwarded Message --------
Subject: company works with python-mode but not with web-mode after this configuration
Resent-Date:    Sat, 22 Apr 2017 05:57:10 -0400 (EDT)
Resent-From:    emacspeak@cs.vassar.edu
Date:   Sat, 22 Apr 2017 15:26:58 +0530
From:   Krishnakant <krmane@openmailbox.org>
To:     emacspeak <emacspeak@cs.vassar.edu>



Dear all,

I have now got pretty well attuned to configuring emacs.

Please look at the following snip it and clear my possible confusion.

(add-hook 'python-mode-hook 'electric-pair-mode)
(add-hook 'python-mode-hook 'linum-mode)
(add-hook 'python-mode-hook 'delete-selection-mode)
(add-hook 'python-mode-hook
  (lambda ()
    (setq indent-tabs-mode t)
    (setq python-indent 4)
    (setq tab-width 4)))


(add-hook 'web-mode-hook 'delete-selection-mode)
(add-hook 'web-mode-hook 'company-mode)
(add-hook 'web-mode-hook 'linum-mode)
(setq tags-table-list '("~/workspace/git/TAGS"))

Needless to say I gave both relevant snippets for Python and web-mode
for reference.

The issue is that while all is well with Python-mode, the same is not
working for web-mode in my case.

Can any one help point me out if any problem could be seen?

I know that web-mode enables company by default yet I have taken no chances.

I did add the call to add it for the web-mode hook.


Happy hacking.

Krishnakant.

-----------------------------------------------------------------------------
To unsubscribe from the emacspeak list or change your address on the
emacspeak list send mail to "emacspeak-request@cs.vassar.edu" with a
subject of "unsubscribe" or "help".



reply via email to

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