Add custom YAS snippets

This commit is contained in:
Gergely Polonkai 2017-11-29 13:47:31 +01:00
parent 55432dbda0
commit 3bf2033198
3 changed files with 26 additions and 0 deletions

11
snippets/c-mode/gobh Normal file
View File

@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: GObject H boilerplate
# key: gobh
# --
# include <glib-object.h>
G_BEGIN_DECLS
$0
G_END_DECLS

View File

@ -0,0 +1,10 @@
# -*- mode: snippet -*-
# name: Protect with ifdef
# key: defprot
# --
#ifndef ${1:name}
# define $1
$0
#endif /* $1 */

View File

@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: Viewport Meta tag
# key: vp
# --
<meta name="viewport" content="width=device-width, initial-scale=1.0">