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:
parent
a0a81f603c
commit
698a921f4f
|
@ -1,6 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: private
|
||||
# key: pr
|
||||
# expand-env: ((yas-also-auto-indent-first-line t))
|
||||
# --
|
||||
private:
|
||||
$0
|
|
@ -1,6 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: protected
|
||||
# key: pt
|
||||
# expand-env: ((yas-also-auto-indent-first-line t))
|
||||
# --
|
||||
protected:
|
||||
$0
|
|
@ -1,6 +1,7 @@
|
|||
# -*- mode: snippet -*-
|
||||
# name: public
|
||||
# key: pb
|
||||
# expand-env: ((yas-also-auto-indent-first-line t))
|
||||
# --
|
||||
public:
|
||||
$0
|
Loading…
Reference in New Issue