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

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

Re: indentation - always a pita


From: Harry Putnam
Subject: Re: indentation - always a pita
Date: Thu, 26 Jun 2003 11:21:24 -0700
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3.50 (gnu/linux)

Jens Schmidt <address@hidden> writes:

> Try `sh-basic-offset' instead.  That's what I use.  I tried to
> format your example with the following result:

Yeah, now we're talking.  combine this with Kai's suggestion
(setq-default indent-tabs-mode nil)
Gets rid of tabs

(setq sh-basic-offset 2)
Gets rid of the radical indentation.

Even the deepest offset is 16 spc instead of 24.
I think this is a more sensible setup.  But of course haven't tested
it thoroughly.

Think I might try submitting a bug report to the maintainers and see
if there is a good reason why the default is so radical.

PS- The example sh code I posted as legitamate format was actually
ridled with syntax errors.  Here is a better example:

if [ ];then
if [ ];then
case $option
t)cmd
if[];then
cmd
fi
;;
h)cmd
if[];then
case $otheroption
a) cmd
if[];then
cmd
fi
;;
b) cmd
;;
esac
;;
esac
fi
if[];then
cmd
fi
fi
fi





reply via email to

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