Emacs: 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.

Solution:

(setq yas/indent-line nil)

Other tips that was on this page before: