Overrides indent-tabs-mode
web-mode currently does not respect my setting of indent-tabs-mode, so I have to enable it for every single web-mode buffer I enter.
I would recommend either using the user settings or adding a customisation option, with the default being the value of indent-tabs-mode
@alanpearce thank you for the report. I do not use indent-tabs-mode ... could you tell me more about what you need. What behaviour does indent-tabs-mode change ? What customisation options do you need ?
@alanpearce moreover, isn't it something to change in the web-mode-hook ?
In (define-derived-mode web-mode web-mode-prog-mode ...), there is
(setq fill-paragraph-function 'web-mode-fill-paragraph
font-lock-fontify-buffer-function 'web-mode-scan-buffer
forward-sexp-function 'web-mode-forward-sexp
;; font-lock-keywords-only t
font-lock-unfontify-buffer-function 'web-mode-scan-buffer
imenu-case-fold-search t
imenu-create-index-function 'web-mode-imenu-index
indent-line-function 'web-mode-indent-line
indent-tabs-mode nil
require-final-newline nil)
which is where indent-tabs-mode is being overwritten. I have (setq-default indent-tabs-mode t) in my emacs init file I would just like for it not to be overwritten. Does that make sense?
understood, thank you. I'll remove this line.
@alanpearce the line has been removed with the last commit
That's great, thanks.