help-gnu-emacs
[Top][All Lists]
Advanced

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

Re: Major mode for bash shell scripts?


From: Klaus Zeitler
Subject: Re: Major mode for bash shell scripts?
Date: 10 Apr 2003 09:15:14 +0200
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.3

>>>>> "Brian" == Brian Poole <nospam@yahoo.com> writes:
    Brian> 
    Brian> Is there a major mode for bash shell scripts?
    Brian> If not what is the best way to ensure good indentation in bash shell
    Brian> scripts?

There's sh-script.el. You can use that for many different shells. Newer
versions also support indentation (not as fancy as c-mode or cperl though).
Didn't like the default indentation though, cause it looked like:

if [ ... ]
    then
    ...
fi

for ...
  do
  ...
done


I had to tweak a few variables to change it to e.g.

if [ ... ]
then
    ...
fi

for ...
do
    ...
done


Klaus

-- 
 ------------------------------------------
|  Klaus Zeitler      Lucent Technologies  |
 ------------------------------------------
---
A: Because it messes up the order in which people normally read text.
Q: Why is top-posting such a bad thing?
A: Top-posting.
Q: What is the most annoying thing on usenet?


reply via email to

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