0

In editing html/php mix in web-mode, I inserted a single line by a yank 'C-y' and the full buffer (it says region) is re-indented. It takes a large amount of time. It even throws a warning:

"Warning (undo): Buffer ... The undo info was discarded because it exceeded `undo-outer-limit'. This is normal if you executed a command that made a huge change to the buffer. "

Fine, re-indented once. However, if I apply another yank, the whole indentation runs again. Even throwing the warning again. Impossible to work this way.

How can a customize web-mode, that the full indentation is applied only on request? And when I insert something, only a partial indentation is applied, affecting only the recently inserted line (like, by default in php-mode and probably most programming language modes).

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.