[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Tabs for indentation, spaces for alignment?
From: |
Booted Cat |
Subject: |
Re: Tabs for indentation, spaces for alignment? |
Date: |
6 Dec 2006 23:09:06 -0800 |
User-agent: |
G2/1.0 |
Caught you again baby!
Anders Kaseorg wrote:
> As far as I can tell, Emacs is able to use either only spaces for
> indentation and alignment:
> block {
> ....block {
> ........some_really_long_function_name(arg,
> .......................................arg);
> or an "optimal" mixture of tabs and spaces for indentation and
> alignment:
> block {
> --->block {
> --->--->some_really_long_function_name(arg,
> --->--->--->--->--->--->--->--->--->...arg);
> which, of course, might not be so "optimal" to someone with a different
> tab width:
> block {
> ----->block {
> ----->----->some_really_long_function_name(arg,
> ----->----->----->----->----->----->----->----->----->...arg);
>
> You may prefer spaces or tabs for indentation, and that's fine, but you
> have to agree that using tabs for alignment in this way is broken. What
> I really want is to use tabs for indentation and spaces for alignment:
> block {
> --->block {
> --->--->some_really_long_function_name(arg,
> --->--->...............................arg);
> so that the indentation characters are semantically correct, and the
> layout is independent of tab width:
> block {
> ----->block {
> ----->----->some_really_long_function_name(arg,
> ----->----->...............................arg);
>
> Is there any way to get this behavior out of Emacs?
>
> Anders
- Re: Tabs for indentation, spaces for alignment?,
Booted Cat <=