-
Notifications
You must be signed in to change notification settings - Fork 4.9k
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
html.erb does not associate with html-mode, default is fundamental mode #7330
Comments
Add the html layer. |
I have added the html layer to dotspacemacs-configuration-layers, but it does not work. |
It should. https://github.com/syl20bnr/spacemacs/blob/develop/layers/+lang/html/packages.el#L245 Can you check if this entry is in your auto-mode-alist? |
Yes,it's there. |
And if you do |
File mode specification error, can not open load file. |
Which file? |
sorry, web-mode |
Sounds like the package wasn't installed, this should have produced an error message earlier. |
I found the problem.I added (global-git-commit-mode t) to dotspacemacs/user-init () which should be added to user-config().But I don't know why this line can not be added to user-init fuction. |
Because user-init runs before all the packages are set up, you can't call functions there that are defined in packages. |
Thanks! |
I use rails to program.When I jump to view from a controler using SPC m g v , the view ended with .erb does not associate with html-mode, default is fundamental mode.Help me.
The text was updated successfully, but these errors were encountered: