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

Fix evil-shift-width indent level in Ruby #2114

Closed
wants to merge 1 commit into from

Conversation

dreoliv
Copy link

@dreoliv dreoliv commented Jun 25, 2015

Even when enh-ruby-indent-level was set to 2, evil-shift-left and -right
functions (triggered by >> and <<) were changing indentation in steps
of 4. This commit fixes such behaviour by setting the evil-shift-width
to the same value as enh-ruby-indent-level.

Even when enh-ruby-indent-level was set to 2, evil-shift-left and right
functions (triggered by >> and <<) were changing indentation in steps
of 4. This commit fixes such behaviour by setting the evil-shift-width
to the same value as enh-ruby-indent-level.
@dreoliv
Copy link
Author

dreoliv commented Jun 25, 2015

I should mention that I'm very new to emacs and elisp, so if this code is completely nonsense, please fell free to say so 😄

At least I know it works 👯

@kingcons
Copy link
Contributor

Is it possible this effects visual mode as well? A friend of mine was bitten by < and > using 4 spaces in Visual mode of a js file today, even though he (setq js2-basic-offset 2) in his .spacemacs. Issue #751 seems to capture the general problem.

@dreoliv
Copy link
Author

dreoliv commented Oct 30, 2015

I'm closing this PR since this is already fixed on master.

🍻

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

Successfully merging this pull request may close these issues.

2 participants