Added snippets for Emacs

This commit is contained in:
Fabio Scotto di Santolo
2025-12-27 13:53:55 +01:00
parent 2d510d289c
commit db4f52a064
115 changed files with 814 additions and 0 deletions

View File

@@ -0,0 +1,4 @@
#name : new array
# --
var ${1:myArray} = new Array();
$0

View File

@@ -0,0 +1,6 @@
#name : function
# --
function ${1:test}(${2:pValue}) {
$0
}

View File

@@ -0,0 +1,5 @@
#name : for (...; ...; ...) { ... }
# --
for (var ${1:i} = 0; $1 < ${2:args.length}; $1${3:++}) {
$0
}

View File

@@ -0,0 +1,6 @@
#name : if
# --
if (${1:s} == ${2:undefined}) {
$0
}

View File

@@ -0,0 +1,3 @@
#name : log
# --
console.log("$0");