Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-mode template issues for django engine #4499

Closed
synic opened this issue Jan 8, 2016 · 3 comments
Closed

web-mode template issues for django engine #4499

synic opened this issue Jan 8, 2016 · 3 comments

Comments

@synic
Copy link
Contributor

synic commented Jan 8, 2016

If you type {{var, smartparens enters }} correctly.

If you type {{ var, you will get }}}.

Not sure if this is a spacemacs issue, or a web-mode issue, or smart-parens or what. It happens in other engines too.

System Info

  • OS: darwin
  • Emacs: 24.5.7
  • Spacemacs: 0.105.4
  • Spacemacs branch: develop (rev. c34c9d0)
  • Distribution: spacemacs
  • Layers:
(unscroll auto-completion xkcd emacs-lisp git dash yaml github javascript html markdown extra-langs python ruby org osx python django syntax-checking spell-checking version-control lua colors spacemacs-layouts vimscript themes-megapack
          (c-c++ :variables c-c++-enable-clang-support t)
          (shell :variables shell-default-height 30 shell-default-position 'bottom))
@TheBB
Copy link
Collaborator

TheBB commented Jan 8, 2016

It's probably a smartparens issue. Spacemacs has disabled web-mode's built-in automatic pairing and uses smartparens instead. If I revert that, it works fine for me:

  (add-hook 'web-mode-hook 'spacemacs/toggle-smartparens-off 'append)
  (setq web-mode-enable-auto-pairing t)

I'm not sure why the original decision was made but I'm leaning towards scrapping smartparens in web-mode because this is incredibly annoying.

@synic
Copy link
Contributor Author

synic commented Jan 11, 2016

I wonder if it's so that SPC t p works correctly in web-mode.

@d12frosted
Copy link
Collaborator

Fixed with released of Spacemacs v0.200. Let us know if you still have any problems with this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants