murtaza52
murtaza52

Reputation: 47431

how to unindent slim code in emacs

I am using slim with emacs for development. I am able to indent blocks of slim code by just marking the block and then pressing tab.

However how do I unindent a whole block back? Any help will be appreciated.

Thanks, Murtaa

Upvotes: 0

Views: 855

Answers (1)

Thomas
Thomas

Reputation: 17422

Select the code block, then do C-u - 4 C-x TAB to unindent the marked region by 4 spaces.

  • C-u allows to specify a prefix argument to the following indent command
  • - 4 gives the amount of indentation (-4). Since the number is negative, you're indenting to the left.
  • C-x TAB indents the region by the given amount.

This answer might also be interesting to you: https://stackoverflow.com/a/11624677/261142

Upvotes: 1

Related Questions