CodingStyle: enable emacs display of trailing whitespace
authorAlison Chaiken <alison_chaiken@mentor.com>
Mon, 26 Jan 2015 03:26:01 +0000 (19:26 -0800)
committerJonathan Corbet <corbet@lwn.net>
Wed, 28 Jan 2015 19:05:46 +0000 (12:05 -0700)
Suggest to developers who use emacs that they turn on the
instantaneous trailing-whitespace warning feature.

Signed-off-by: Alison Chaiken <alison_chaiken@mentor.com>
[jc: untabified to match its surroundings]
Signed-off-by: Jonathan Corbet <corbet@lwn.net>
Documentation/CodingStyle

index 618a33c940df6634165da1e0717f911473c74a39..449a8a19fc21fd12582e4ab144549740bd6dd4c3 100644 (file)
@@ -527,6 +527,7 @@ values.  To do the latter, you can stick the following in your .emacs file:
                          (string-match (expand-file-name "~/src/linux-trees")
                                        filename))
                 (setq indent-tabs-mode t)
+                (setq show-trailing-whitespace t)
                 (c-set-style "linux-tabs-only")))))
 
 This will make emacs go better with the kernel coding style for C