all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Bruce Korb <bruce_korb@symantec.com>
Subject: sh-basic-offset help?
Date: Thu, 22 Sep 2005 09:12:11 -0700	[thread overview]
Message-ID: <4332D7DB.6000801@symantec.com> (raw)


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

             reply	other threads:[~2005-09-22 16:12 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-22 16:12 Bruce Korb [this message]
     [not found] <mailman.8074.1127406463.20277.help-gnu-emacs@gnu.org>
2005-10-06  0:31 ` sh-basic-offset help? Will Parsons
2005-10-06  4:01   ` Stefan Monnier

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

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4332D7DB.6000801@symantec.com \
    --to=bruce_korb@symantec.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.