Add custom YAS snippets
This commit is contained in:
parent
55432dbda0
commit
3bf2033198
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 */
|
5
snippets/web-mode/viewport-meta
Normal file
5
snippets/web-mode/viewport-meta
Normal file
@ -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
Block a user