[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: sh-basic-offset help?
From: |
Will Parsons |
Subject: |
Re: sh-basic-offset help? |
Date: |
6 Oct 2005 00:31:42 GMT |
User-agent: |
slrn/0.9.8.1 (Debian) |
Bruce Korb wrote:
>
> Hi,
>
> The shell script mode seems to be filled with so many offset
> settings that I have trouble setting the offsets the way I
> would like to have them set. Is there a straight forward
> way to find them all or else find a "master" setting that
> the others can be derived from?
>
> My preference is for "sh-basic-offset" and "sh-indentation"
> to be 4. So, I get:
>
>> for x
>> do
>> statement
>> done
>
> Sure looks like 2 to me. And what's with the indentation
> of "do"? do/done should line up, indented or not. (I
> would as soon not indent "do", but they must line up
> either way.) "if" seems to work okay, but:
>
>> if test x
>> then
>> statement
>> else
>> statement
>> fi
>
> Again, "then", "else" and "fi" ought to line up.
>
> Hints about the magic, please? :) Thank you! - Bruce
I've tried to find a solution to this and failed. I've been looking
for some sort of response to this, but none has appeared. My sole
purpose in responding is to indicate that more than one person can't
get shell mode to do the right thing - surely someone must be using
Emacs for writing shell scripts!
- Will
- Re: sh-basic-offset help?,
Will Parsons <=