syl20bnr / spacemacs

A community-driven Emacs distribution - The best editor is neither Emacs nor Vim, it's Emacs *and* Vim!
http://spacemacs.org
GNU General Public License v3.0
23.64k stars 4.89k forks source link

Web mode regression: evil-matchit not being applied #7415

Closed posva closed 4 months ago

posva commented 7 years ago

Hello,

After updating to the latest version (tested on the develop branch too), I found out that web mode is not working as well as before. More specifically the the evil-matchit doesn't apply. I tried toggling it with SPC : then evil-matchit-mode with no success. Here is a gif oct-16-2016 12-24-04

I'm using == to indent the } at the end. Notice how I manually insert the matching } and '

System Info :computer:

(auto-completion emacs-lisp git markdown org
                 (shell :variables shell-default-height 30 shell-default-shell 'term shell-default-position 'bottom)
                 spell-checking syntax-checking version-control c-c++ games speed-reading xkcd emoji yaml markdown html javascript react swift osx eyebrowse elixir typescript python)
github-actions[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!

posva commented 4 years ago

just a comment

duianto commented 4 years ago

The issue was opened a while back, it might be helpful if you could post your current system info.

This is what I'm seeing:

evil-matchit-mode is enabled when I open a .html file or switch to web-mode in a new buffer.

Therefore jumping between braces, quotes and tags by pressing: % works as expected.

You mentioned pressing == to indent the closing curly bracket, for me it auto indents after one or two seconds after typing }.

System Info (click to expand)
#### System Info :computer:
- OS: windows-nt
- Emacs: 26.3
- Spacemacs: 0.300.0
- Spacemacs branch: develop (rev. f5fddc425)
- Graphic display: t
- Distribution: spacemacs
- Editing style: vim
- Completion: helm
- Layers:
```elisp
(autohotkey
 (auto-completion :variables auto-completion-enable-help-tooltip t auto-completion-enable-snippets-in-popup t)
 (colors :variables colors-enable-nyan-cat-progress-bar t)
 emacs-lisp git helm html javascript lsp
 (markdown :variables markdown-live-preview-engine 'vmd markdown-command "vmd")
 multiple-cursors
 (org :variables org-agenda-files
      '("~/org/notes.org"))
 (python :variables)
 ranger
 (shell :variables shell-default-shell 'eshell shell-default-height 30)
 spell-checking
 (syntax-checking :variables syntax-checking-enable-by-default nil)
 treemacs version-control)
```
- System configuration features: XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY ACL GNUTLS LIBXML2 ZLIB TOOLKIT_SCROLL_BARS THREADS LCMS2


Notice how I manually insert the matching } and '

It sounds like you might be looking for smartparens to complete the closing pair. It seems to be disabled by default in web-mode.

github-actions[bot] commented 2 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Please let us know if this issue is still valid!