all
I set my file indent policy in .emacs as following,
;; indent code settings
(setq-default indent-tabs-mode nil)
(setq default-tab-width 4)
(setq tab-width 4)
but it doesn't work for xml file, when I using 'C+M+\' to format xml file, the child node only indent 2 space than parent. I want to child node is 4 space indent than parent. I add below settings, this works as what I want.
(custom-set-variables
'(nxml-outline-child-indent 4))
Why does first setting not work? and, another problem, is there a consistent way to do that for all code file?
thanks for your help.