Add custom YAS snippets
This commit is contained in:
11
snippets/c-mode/gobh
Normal file
11
snippets/c-mode/gobh
Normal file
@@ -0,0 +1,11 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: GObject H boilerplate
|
||||
# key: gobh
|
||||
# --
|
||||
# include <glib-object.h>
|
||||
|
||||
G_BEGIN_DECLS
|
||||
|
||||
$0
|
||||
|
||||
G_END_DECLS
|
10
snippets/c-mode/ifdef-protect
Normal file
10
snippets/c-mode/ifdef-protect
Normal file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: Protect with ifdef
|
||||
# key: defprot
|
||||
# --
|
||||
#ifndef ${1:name}
|
||||
# define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif /* $1 */
|
Reference in New Issue
Block a user