yasnippet does not respect spaces or tabs when they occur at the start a line.
In my snippet file I have
example
which executes as
example
Escaping with \
doesn't work.
How do I get leading spaces/tabs?
Emacs Stack Exchange is a question and answer site for those using, extending or developing Emacs. It only takes a minute to sign up.
Sign up to join this communityyasnippet does not respect spaces or tabs when they occur at the start a line.
In my snippet file I have
example
which executes as
example
Escaping with \
doesn't work.
How do I get leading spaces/tabs?
Look for expand-env: ((yas-indent-line 'fixed))
:
# -*- mode: snippet -*-
# name: Example for Indent
# key: example
# expand-env: ((yas-indent-line 'fixed))
# --
example
$0