Make c++-mode access specifier snippets indent the first line (#190)

The first line of the expansion usually needs to be unindented
relative to the current offset.
* c++-mode/private:
* c++-mode/protected:
* c++-mode/public: Bind yas-also-auto-indent-first-line to t.
This commit is contained in:
Noam Postavsky 2017-07-10 17:56:29 -04:00 committed by Andrea Crotti
parent a0a81f603c
commit 698a921f4f
3 changed files with 3 additions and 0 deletions

View File

@ -1,6 +1,7 @@
# -*- mode: snippet -*-
# name: private
# key: pr
# expand-env: ((yas-also-auto-indent-first-line t))
# --
private:
$0

View File

@ -1,6 +1,7 @@
# -*- mode: snippet -*-
# name: protected
# key: pt
# expand-env: ((yas-also-auto-indent-first-line t))
# --
protected:
$0

View File

@ -1,6 +1,7 @@
# -*- mode: snippet -*-
# name: public
# key: pb
# expand-env: ((yas-also-auto-indent-first-line t))
# --
public:
$0