Add custom YAS snippets
This commit is contained in:
parent
55432dbda0
commit
3bf2033198
|
@ -0,0 +1,11 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: GObject H boilerplate
|
||||||
|
# key: gobh
|
||||||
|
# --
|
||||||
|
# include <glib-object.h>
|
||||||
|
|
||||||
|
G_BEGIN_DECLS
|
||||||
|
|
||||||
|
$0
|
||||||
|
|
||||||
|
G_END_DECLS
|
|
@ -0,0 +1,10 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Protect with ifdef
|
||||||
|
# key: defprot
|
||||||
|
# --
|
||||||
|
#ifndef ${1:name}
|
||||||
|
# define $1
|
||||||
|
|
||||||
|
$0
|
||||||
|
|
||||||
|
#endif /* $1 */
|
|
@ -0,0 +1,5 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: Viewport Meta tag
|
||||||
|
# key: vp
|
||||||
|
# --
|
||||||
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
Loading…
Reference in New Issue