diff --git a/emacs/.emacs.d/init.org b/emacs/.emacs.d/init.org index 717955a..f5b0b30 100755 --- a/emacs/.emacs.d/init.org +++ b/emacs/.emacs.d/init.org @@ -2761,22 +2761,24 @@ Some formatting stuff: #+BEGIN_SRC emacs-lisp (use-package web-mode :mode (("\\.html\\'" . web-mode) - ("\\.js\\'" . web-mode) - ("\\.jsx\\'" . web-mode) - ("\\.mako\\'" . web-mode) - ("\\.jinja2\\'" . web-mode) - ("\\.hbs\\'" . web-mode)) + ("\\.js\\'" . web-mode) + ("\\.jsx\\'" . web-mode) + ("\\.mako\\'" . web-mode) + ("\\.jinja2\\'" . web-mode) + ("\\.hbs\\'" . web-mode)) :config (setq web-mode-engines-alist - '(("django" . "\\.jinja2\\'"))) + '(("django" . "\\.jinja2\\'"))) (add-hook 'web-mode-hook - (lambda () - (when (equal web-mode-content-type "javascript") - (web-mode-set-content-type "jsx")) - (when (or (equal web-mode-content-type "javascript") - (equal web-mode-content-type "jsx")) - (lsp-deferred)))) - (add-hook 'web-mode-hook #'disable-tab-insert)) + (lambda () + (when (equal web-mode-content-type "javascript") + (web-mode-set-content-type "jsx")) + (when (or (equal web-mode-content-type "javascript") + (equal web-mode-content-type "jsx")) + (lsp-deferred)))) + (add-hook 'web-mode-hook #'disable-tab-insert) + :custom + (web-mode-enable-auto-pairing nil)) #+END_SRC Use nvm to manage node versions: