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: move indent level to rust-common #538

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions rust-common.el
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,11 @@
:type 'function
:group 'rust-mode)

(defcustom rust-indent-offset 4
Copy link
Member

Choose a reason for hiding this comment

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

Instead of moving it here, do you think a defvaralias should be instead created. Something similar to this: https://github.com/psibi/rustic/blob/4dac7f34c30d91e3ecb2602fff7e81b6efdc75d7/rustic.el#L52

"Indent Rust code by this number of spaces."
:type 'integer
:group 'rust-mode
:safe #'integerp)

(provide 'rust-common)
;;; rust-common.el ends here
6 changes: 0 additions & 6 deletions rust-prog-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,6 @@
("INFINITY" . ?∞) ("->" . ?→) ("=>" . ?⇒))
"Alist of symbol prettifications used for `prettify-symbols-alist'.")

(defcustom rust-indent-offset 4
"Indent Rust code by this number of spaces."
:type 'integer
:group 'rust-mode
:safe #'integerp)

(defcustom rust-indent-method-chain nil
"Indent Rust method chains, aligned by the `.' operators."
:type 'boolean
Expand Down