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
How to set indent in xml to 4? #5483
Comments
Hi, @darfink, I tried as you said, and the user-config is as follows:
But it still cannot work. How could that happen? |
Have you configured a custom major-mode for XML files or are you using the default? (
|
Use |
@TheBB @darfink
|
As I said, can you please confirm whether |
Sorry, it seems xml files aren't in web-mode by default. That was a customization I had made myself. |
@TheBB I don't have web-mode-markup-indent-offset. I ckecked lua-indent-level it's 4, but it work with still 2 indent. |
Yes, setq lua-indent-level can't work! |
@mrvon How to run it after lua-mode's default setting function? |
@maplewizard Sorry, I don't know. I am a spacemacs beginner. |
you should change the lua-indent-level in file: layers/+lang/lua/package.el |
We shouldn't have that there in the first place. |
Fixed the lua stuff in ff8d4da at least. Now it should work in |
Is there no (defun siddharthist/sh-mode ()
"My own personal preferences for sh-mode"
(setq sh-basic-offset 2
sh-indentation 2))
(add-hook 'sh-mode-hook 'siddharthist/sh-mode) |
@siddharthist there is |
And also I can confirm that on
|
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! |
I have set tab equal to 4 spaces. But when I use xml and lua mode, it turn out to set the tab as 2 spaces. How can I solve that?
The text was updated successfully, but these errors were encountered: