4

so here is my problem: .conf files(like smb.conf and xorg.conf) should look something like this

[some-header]
    somevar = someval
    othervar = otherval
[other header]
    opt1 = pref1
    opt2 = pref2

what emacs basically does when i "indent-region" is something like this(depending on the current indentation)

    [some-header]
        somevar = someval
            othervar = otherval
                [other header]
                    opt1 = pref1
                        opt2 = pref2

how do i fix this?

Luke Girvin
  • 13,221
  • 9
  • 64
  • 84
fakedrake
  • 6,528
  • 8
  • 41
  • 64
  • 1
    I am getting bit opposite results though. all the lines comes to first column with zero inendation. – kindahero Sep 04 '11 at 19:48
  • 2
    I've detailed the reason for that staircase effect in a different answer: http://stackoverflow.com/questions/3278026/emacs-remember-text-selection/3281811#3281811 – phils Sep 04 '11 at 20:42

0 Answers0