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

Improve robot-indent so it works when c-basic-offset is 'set-from-style. #9

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

j-oberlaender
Copy link

Hi,

I noticed that in my Emacs (24.3.1, cc-mode 5.33), the robot-indent function wouldn't work right because c-basic-offset returns the symbol 'set-from-style. I didn't find a fix anywhere that provided a proper solution to this issue, so I wrote one. The function still falls back to 4 spaces if c-basic-offset is unset, but tries its best to determine the current c-default-style's offset in case 'set-from-style is used.

If you're interested in the change, feel free to take it and run with it.

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.

1 participant