Oleiade
Oleiade

Reputation: 6274

Django templates indentation in Emacs

I'm using django-html-mumamo-mode in order to manage Django templates in Emacs. Unfortunately, I've searched over the net but didn't find any way to change the HTML indentation from 2 to 4, when this mode is activated.

How can this be done?

Upvotes: 2

Views: 894

Answers (1)

Luke Girvin
Luke Girvin

Reputation: 13442

Try customizing the variable django-indent-width, for example by adding this to your .emacs file:

(setq django-indent-width 4)

Upvotes: 4

Related Questions