Closed sphakka closed 7 months ago
try with an empty .emacs
After much head scratching, here comes the bug. It has nothing to do with lineup settings and it happens with minimal .emacs
:
(require 'web-mode)
(setq-default tab-width 4)
(add-hook
'web-mode-hook
(lambda ()
(setq indent-tabs-mode t)
(web-mode-use-tabs)
))
The culprit is (web-mode-use-tabs)
-- removing it, brings back the expected behavior.
There is issues with tab alignment. Would be happy to review a patch.
Maybe I'm missing something about lineup args, etc. I have these in my
.emacs
:Still, with plain HTML, I can't manage to stop attrs to (mis)align on different lines. This is what happens:
|
is the cursor) hit enter: the cursor is correctly indented by one tab:That's, ahem... ugly! How to prevent it?
BTW, even when lineup alignment is desired, IMO, it would be nicer to have attributes on multiple lines to get aligned (whenever possible -- I guess it might be really complicated!) at the
=
sign: