Install yasnippet and vala-snippets packages
This commit is contained in:
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: abspath
|
||||
# contributor: gbalats
|
||||
# key: abs
|
||||
# --
|
||||
\$(abspath ${1:\$(${2:paths})})$0
|
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: addprefix
|
||||
# contributor: gbalats
|
||||
# key: ap
|
||||
# --
|
||||
\$(addprefix ${1:\$(${2:dir})/},${3:\$(${4:items})})$0
|
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: addsuffix
|
||||
# contributor: gbalats
|
||||
# key: as
|
||||
# --
|
||||
\$(addsuffix ${1:.suffix},${2:\$(${3:items})})$0
|
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: dir
|
||||
# contributor: gbalats
|
||||
# key: d
|
||||
# --
|
||||
\$(dir ${1:\$(${2:paths})})$0
|
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: make
|
||||
# contributor: gbalats
|
||||
# key: make
|
||||
# --
|
||||
\$(MAKE) --directory=${1:\$@}
|
||||
$0
|
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: notdir
|
||||
# contributor: gbalats
|
||||
# key: nd
|
||||
# --
|
||||
\$(notdir ${1:\$(${2:paths})})$0
|
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: patsubst
|
||||
# key: ps
|
||||
# --
|
||||
$(patsubst ${1:from},${2:to},${3:src})
|
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: phony
|
||||
# key: ph
|
||||
# --
|
||||
.PHONY = $0
|
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: shell
|
||||
# key: sh
|
||||
# --
|
||||
\$(shell ${1:command})$0
|
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet; require-final-newline: nil -*-
|
||||
# name: special targets
|
||||
# contributor: gbalats
|
||||
# key: .
|
||||
# --
|
||||
.${1:PHONY$(upcase yas-text)}: $0
|
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: template
|
||||
# contributor: gbalats
|
||||
# binding: C-c C-t
|
||||
# --
|
||||
define ${1:PROGRAM$(upcase yas-text)}_template
|
||||
$0
|
||||
endef
|
||||
|
||||
\$(foreach ${2:${1:$(downcase yas-text)}},\$(${3:$1S}),\$(eval \$(call $1_template,\$($2))))
|
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: wildcard
|
||||
# key: wl
|
||||
# --
|
||||
$(wildcard $0)
|
Reference in New Issue
Block a user