Django templates indentation in Emacs
I'm using django-html-mumamo-mode in o开发者_开发百科rder 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?
Try customizing the variable django-indent-width
, for example by adding this to your .emacs file:
(setq django-indent-width 4)
精彩评论