[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 <Jens.Schmidt27@epost.de> 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
- indentation - always a pita, Harry Putnam, 2003/06/24
- Re: indentation - always a pita, Kai Großjohann, 2003/06/25
- Re: indentation - always a pita, Harry Putnam, 2003/06/25
- Re: indentation - always a pita, Harry Putnam, 2003/06/25
- Re: indentation - always a pita, Kai Großjohann, 2003/06/25
- Re: indentation - always a pita, Harry Putnam, 2003/06/26
- Message not available
- Re: indentation - always a pita, Jens Schmidt, 2003/06/26
- Re: indentation - always a pita, Harry Putnam, 2003/06/26
- Re: indentation - always a pita,
Harry Putnam <=
- Message not available
- Re: indentation - always a pita, Jens Schmidt, 2003/06/27
- Re: indentation - always a pita, Harry Putnam, 2003/06/27