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: Jens Schmidt
Subject: Re: indentation - always a pita
Date: 26 Jun 2003 10:13:52 +0100
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.1

Harry Putnam <address@hidden> writes:

> C-h v <ret>  sh-indentation <ret>
> sh-indentation's value is 2

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

if [ ];then
  if [ ];then
    case $opt in
      t) cmd
        lf  [ ];then 
    cmd
  fi
  ;;
      h) cmd
        if [ ];then
          case $otheropt in
            a) cmd
              if [ ];then
                cmd
              fi
              ;;
            b) cmd
              ::
          esac
        fi
    esac
    if [];then
      cmd
      ii
    fi
fi

Jens


reply via email to

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