开发者

Django templates indentation in Emacs

开发者 https://www.devze.com 2023-03-09 01:30 出处:网络
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

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)

0

精彩评论

暂无评论...
验证码 换一张
取 消