Skip to content
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