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

Set powershell-indent based off tab-width. #6044

Closed
wants to merge 1 commit into from

Conversation

punassuming
Copy link
Contributor

This will allow tab spacing to be consistent with the users existing setup.

@StreakyCobra
Copy link
Contributor

@@ -53,6 +53,8 @@
(spacemacs|define-text-object "$" "dollarparen" "$(" ")")
)
(add-hook 'powershell-mode-hook 'powershell/define-text-objects)
;; set powershell indent to tab-width
(setq powershell-indent tab-width)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Doesn't it matter that tab-width is buffer-local? There's (default-value 'tab-width) if using the default value (set by setq-default) makes more sense here. (I don't actually know what's appropriate here, just raising a concern)

@punassuming
Copy link
Contributor Author

@StreakyCobra, this alist will probably work fine, I will update this to give it a try.

@punassuming
Copy link
Contributor Author

@StreakyCobra, this alist is used only for evil-shift-width, but I have updated including this change as well.

@StreakyCobra
Copy link
Contributor

@Ralesi Oh right, but indeed it's nice to had it there too. (And thanks for the key-bindings documentation update on your other PRs, I didn't want to spam you, so doing it here ;-) )

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

Successfully merging this pull request may close these issues.

3 participants