emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/rust-mode bb9bbd2 413/486: readme: recommend setting inden


From: ELPA Syncer
Subject: [nongnu] elpa/rust-mode bb9bbd2 413/486: readme: recommend setting indent-tabs-mode to nil
Date: Sat, 7 Aug 2021 09:26:04 -0400 (EDT)

branch: elpa/rust-mode
commit bb9bbd24df2294f40f77d031fe2f5defeb103931
Author: Trevor Spiteri <tspiteri@ieee.org>
Commit: Nathan Moreau <nathan.moreau@m4x.org>

    readme: recommend setting indent-tabs-mode to nil
---
 README.md | 11 +++++++++++
 1 file changed, 11 insertions(+)

diff --git a/README.md b/README.md
index 34a3fc2..e4af066 100644
--- a/README.md
+++ b/README.md
@@ -7,6 +7,7 @@
 
 - [Installation via MELPA](#installation-via-melpa)
 - [Manual Installation](#manual-installation)
+- [Indentation](#indentation)
 - [rustfmt](#rustfmt)
 - [Tests](#tests)
 - [Other useful packages](#other-useful-packages)
@@ -44,6 +45,16 @@ Add this to your init.el:
 (autoload 'rust-mode "rust-mode" nil t)
 ```
 
+# Indentation
+
+The Rust style guide recommends spaces for indentation; to follow the
+recommendation add this to your init.el:
+
+```elisp
+(add-hook 'rust-mode-hook
+          (lambda () (setq indent-tabs-mode nil)))
+```
+
 # rustfmt
 
 The `rust-format-buffer` function will format your code with



reply via email to

[Prev in Thread] Current Thread [Next in Thread]