From: Will Parsons <oudeis@nodomain.invalid>
Subject: Re: sh-basic-offset help?
Date: 6 Oct 2005 00:31:42 GMT [thread overview]
Message-ID: <slrndk8s3f.j8l.oudeis@isis.thalatta> (raw)
In-Reply-To: mailman.8074.1127406463.20277.help-gnu-emacs@gnu.org
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
next parent reply other threads:[~2005-10-06 0:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <mailman.8074.1127406463.20277.help-gnu-emacs@gnu.org>
2005-10-06 0:31 ` Will Parsons [this message]
2005-10-06 4:01 ` sh-basic-offset help? Stefan Monnier
2005-09-22 16:12 Bruce Korb
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://www.gnu.org/software/emacs/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=slrndk8s3f.j8l.oudeis@isis.thalatta \
--to=oudeis@nodomain.invalid \
--cc=ellenophilos@yahoo.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).