[PATCH 0/2] streamline_config.pl: Fix Perl spacing

From: Steven Rostedt
Date: Mon Mar 22 2021 - 17:41:26 EST



Talking with John Hawley about how vim and emacs deal with Perl files
with respect to tabs and spaces, I found that some of my Perl code in
the kernel had inconsistent spacing. The way emacs handles Perl by default
is to use 4 spaces per indent, but make all 8 spaces into a single tab.
Vim does not do this by default. But if you add the vim variable control:

# vim: softtabstop=4

to a perl file, it makes vim behave the same way as emacs.

The first patch is to change all 8 spaces into a single tab (mostly from
people editing the file with vim). The next patch adds the softtabstop
variable to make vim act like emacs by default.

Steven Rostedt (VMware) (2):
streamline_config.pl: Make spacing consistent
streamline_config.pl: Add softtabstop=4 for vim users

----
scripts/kconfig/streamline_config.pl | 80 ++++++++++++++++++------------------
1 file changed, 41 insertions(+), 39 deletions(-)