Emacs: How to Stop Yasnippet auto-indent

By Xah Lee. Date: . Last updated: .

one thing that's been annoying me for years. Yasnippet indent your lines when you don't want to. Especially when you specifically didn't include any indentation hint in the template. Have been trying to find a special syntax in template to stop the auto-indent behavior, never found it or didn't spend enough time.


(setq yas/indent-line nil)

Other tips that was on this page before:

If you have a question, put $5 at patreon and message me on xah discord.
Or support me by Buy Xah Emacs Tutorial