-
Notifications
You must be signed in to change notification settings - Fork 119
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
2 blanks indentation #646
Comments
An easy way is to add the following code in the php-mode-hook of the Emacs initialization file. (setq tab-width 2) For example: (add-hook 'php-mode-hook
(lambda()
(setq tab-width 2)) It is more recommended to set it with EditorConfig. |
Hallo zonuexe thank you for your help but unfortunately it didn't help, there are still 4 blanks used for indentation Dirk |
I think Don't have time to check now, but wanted to mention it before I forget I saw this thread. |
thank you very much that worked for me! I put (add-hook 'php-mode-hook in my .emacs file Dirk |
sorry, this is correct: (add-hook 'php-mode-hook Dirk |
Awesome. Glad I could help. |
@zonuexe Think it'd be worth it if I could find a few minutes to expand the documentation to mention |
Yes I think that's a good idea! |
Sorry if this is a stupid question but is it possible to custamize php-mode so that it uses two blanks (instead of four blanks) of identation for indenting blocks? My php-code is already formatted in this way and it would like to keep the indentation.
Many thanks in advance,
Dirk
The text was updated successfully, but these errors were encountered: