all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* sh-basic-offset help?
@ 2005-09-22 16:12 Bruce Korb
  0 siblings, 0 replies; 3+ messages in thread
From: Bruce Korb @ 2005-09-22 16:12 UTC (permalink / 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

^ permalink raw reply	[flat|nested] 3+ messages in thread
[parent not found: <mailman.8074.1127406463.20277.help-gnu-emacs@gnu.org>]

end of thread, other threads:[~2005-10-06  4:01 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-09-22 16:12 sh-basic-offset help? Bruce Korb
     [not found] <mailman.8074.1127406463.20277.help-gnu-emacs@gnu.org>
2005-10-06  0:31 ` Will Parsons
2005-10-06  4:01   ` Stefan Monnier

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.