Adaptive indentation in emacs?

Possible duplicate:
Emacs code to automatically set indent-tabs to existing code

When I edit old files in a group where other people can work on them tomorrow or in ten years, I like to use the existing bookmark or space indentation scheme for my additions / changes - it's just being polite, but for now it's kind of hassle. Does anyone have a way for emacs to look for the current indentation pattern in a file, or at least adjacent lines, and use this to insert tabs?

+6
source share
1 answer

Source: https://habr.com/ru/post/910221/


All Articles