I am having little issues with web-mode.
I am trying to disable the pairing which is done automatically when I try to insert double curly braces like this:
{{<CURSOR>}}
, and hit space to start typing my code , it becomes {{ }}}}
here is what I did to try to disable it , but none of this works which is little frustrating.
(electric-pair-mode 1) ;; this is doing all the pairing for me.
(use-package web-mode
:ensure t
:defer t
:init
;; none of these disabled it
(setq web-mode-enable-auto-expanding -1)
(setq web-mode-enable-auto-closing -1)
(setq web-mode-enable-auto-pairing -1)
(setq web-mode-enable-auto-closing -1)
(setq web-mode-enable-auto-quoting -1)
(add-to-list 'auto-mode-alist '("\\.html\\'" . web-mode))
(add-to-list 'auto-mode-alist '("\\.html\\.erb\\'" . web-mode))
(setq web-mode-engines-alist '(("django" . "/templates/.*\\.html\\'"))))
I am electric-pair-mode
for pairing and use-package
for configuration.