web-mode icon indicating copy to clipboard operation
web-mode copied to clipboard

Overrides indent-tabs-mode

Open alinnow opened this issue 13 years ago • 6 comments

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

alinnow avatar Aug 30 '13 08:08 alinnow

@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 ?

fxbois avatar Aug 30 '13 09:08 fxbois

@alanpearce moreover, isn't it something to change in the web-mode-hook ?

fxbois avatar Aug 30 '13 09:08 fxbois

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?

alinnow avatar Aug 30 '13 09:08 alinnow

understood, thank you. I'll remove this line.

fxbois avatar Aug 30 '13 09:08 fxbois

@alanpearce the line has been removed with the last commit

fxbois avatar Aug 31 '13 08:08 fxbois

That's great, thanks.

alinnow avatar Aug 31 '13 13:08 alinnow