mirror of
https://github.com/joaotavora/yasnippet.git
synced 2025-10-13 21:13:04 +00:00
Keep snippet vars definitions in a single format across all snippets and documentation.
The format is: # var-name: value Previously snippets used a mixture of the following formatting: #var-name: value #var-name : value # var-name: value # var-name : value
This commit is contained in:
parent
acf84b2fe4
commit
09cc3eec21
@ -142,8 +142,8 @@ valid filename, ``lt.yasnippet`` for example, using ``<`` for the
|
|||||||
|
|
||||||
.. sourcecode:: text
|
.. sourcecode:: text
|
||||||
|
|
||||||
#key: <
|
# key: <
|
||||||
#name: <...></...>
|
# name: <...></...>
|
||||||
# --
|
# --
|
||||||
<${1:div}>$0</$1>
|
<${1:div}>$0</$1>
|
||||||
|
|
||||||
|
@ -81,8 +81,8 @@ Here's a typical example:
|
|||||||
|
|
||||||
.. sourcecode:: text
|
.. sourcecode:: text
|
||||||
|
|
||||||
#contributor : pluskid <pluskid@gmail.com>
|
# contributor: pluskid <pluskid@gmail.com>
|
||||||
#name : __...__
|
# name: __...__
|
||||||
# --
|
# --
|
||||||
__${init}__
|
__${init}__
|
||||||
|
|
||||||
@ -151,7 +151,7 @@ your hard work. You can then use:
|
|||||||
|
|
||||||
.. sourcecode:: text
|
.. sourcecode:: text
|
||||||
|
|
||||||
# name : ASCII home
|
# name: ASCII home
|
||||||
# expand-env: ((yas/indent-line 'fixed) (yas/wrap-around-region 'nil))
|
# expand-env: ((yas/indent-line 'fixed) (yas/wrap-around-region 'nil))
|
||||||
# --
|
# --
|
||||||
welcome to my
|
welcome to my
|
||||||
@ -180,8 +180,8 @@ snippet.
|
|||||||
|
|
||||||
.. sourcecode:: text
|
.. sourcecode:: text
|
||||||
|
|
||||||
#name : <p>...</p>
|
# name: <p>...</p>
|
||||||
#binding: C-c C-c C-m
|
# binding: C-c C-c C-m
|
||||||
# --
|
# --
|
||||||
<p>`(when yas/prefix "\n")`$0`(when yas/prefix "\n")`</p>
|
<p>`(when yas/prefix "\n")`$0`(when yas/prefix "\n")`</p>
|
||||||
|
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#name : v.begin(), v.end()
|
# name: v.begin(), v.end()
|
||||||
# key: beginend
|
# key: beginend
|
||||||
# --
|
# --
|
||||||
${1:v}.begin(), $1.end
|
${1:v}.begin(), $1.end
|
@ -1,4 +1,4 @@
|
|||||||
#name : class ... { ... }
|
# name: class ... { ... }
|
||||||
# key: class
|
# key: class
|
||||||
# --
|
# --
|
||||||
class ${1:Name}
|
class ${1:Name}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#name : namespace ...
|
# name: namespace ...
|
||||||
# key: ns
|
# key: ns
|
||||||
# --
|
# --
|
||||||
namespace
|
namespace
|
@ -1,4 +1,4 @@
|
|||||||
#name : template <typename ...>
|
# name: template <typename ...>
|
||||||
# key: template
|
# key: template
|
||||||
# --
|
# --
|
||||||
template <typename ${T}>
|
template <typename ${T}>
|
@ -1,4 +1,4 @@
|
|||||||
#name : using namespace ...
|
# name: using namespace ...
|
||||||
# key: using
|
# key: using
|
||||||
# --
|
# --
|
||||||
using namespace ${std};
|
using namespace ${std};
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#name : FILE *fp = fopen(..., ...);
|
# name: FILE *fp = fopen(..., ...);
|
||||||
# key: fopen
|
# key: fopen
|
||||||
# --
|
# --
|
||||||
FILE *${fp} = fopen(${"file"}, "${r}");
|
FILE *${fp} = fopen(${"file"}, "${r}");
|
@ -1,6 +1,6 @@
|
|||||||
# -*- mode: snippet -*-
|
# -*- mode: snippet -*-
|
||||||
# name : printf
|
# name: printf
|
||||||
# contributor : joaotavora
|
# contributor: joaotavora
|
||||||
# key: printf
|
# key: printf
|
||||||
# --
|
# --
|
||||||
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
|
printf ("${1:%s}\\n"${1:$(if (string-match "%" text) "," "\);")
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#name : do { ... } while (...)
|
# name: do { ... } while (...)
|
||||||
# key: do
|
# key: do
|
||||||
# --
|
# --
|
||||||
do
|
do
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#name : for (...; ...; ...) { ... }
|
# name: for (...; ...; ...) { ... }
|
||||||
# key: for
|
# key: for
|
||||||
# --
|
# --
|
||||||
for (${1:int i = 0}; ${2:i < N}; ${3:++i})
|
for (${1:int i = 0}; ${2:i < N}; ${3:++i})
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#name : if (...) { ... }
|
# name: if (...) { ... }
|
||||||
# key: cc-modeif
|
# key: cc-modeif
|
||||||
# --
|
# --
|
||||||
if (${1:condition})
|
if (${1:condition})
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#name : #include "..."
|
# name: #include "..."
|
||||||
# key: inc
|
# key: inc
|
||||||
# --
|
# --
|
||||||
#include "$1"
|
#include "$1"
|
@ -1,4 +1,4 @@
|
|||||||
#name : #include <...>
|
# name: #include <...>
|
||||||
# key: inc
|
# key: inc
|
||||||
# --
|
# --
|
||||||
#include <$1>
|
#include <$1>
|
@ -1,4 +1,4 @@
|
|||||||
#name: int main(argc, argv) { ... }
|
# name: int main(argc, argv) { ... }
|
||||||
# key: main
|
# key: main
|
||||||
# --
|
# --
|
||||||
int main(int argc, char *argv[])
|
int main(int argc, char *argv[])
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#name : #ifndef XXX; #define XXX; #endif
|
# name: #ifndef XXX; #define XXX; #endif
|
||||||
# key: once
|
# key: once
|
||||||
# --
|
# --
|
||||||
#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_}
|
#ifndef ${1:_`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H_}
|
||||||
|
@ -1,4 +1,4 @@
|
|||||||
#name : struct ... { ... }
|
# name: struct ... { ... }
|
||||||
# key: struct
|
# key: struct
|
||||||
# --
|
# --
|
||||||
struct ${1:name}
|
struct ${1:name}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : private attribute ....;
|
# name: private attribute ....;
|
||||||
# key: attrib
|
# key: attrib
|
||||||
# --
|
# --
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : private attribute ....; public property ... ... { ... }
|
# name: private attribute ....; public property ... ... { ... }
|
||||||
# key: attrib
|
# key: attrib
|
||||||
# --
|
# --
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : private _attribute ....; public Property ... ... { ... }
|
# name: private _attribute ....; public Property ... ... { ... }
|
||||||
# key: attrib
|
# key: attrib
|
||||||
# --
|
# --
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : class ... { ... }
|
# name: class ... { ... }
|
||||||
# key: class
|
# key: class
|
||||||
# --
|
# --
|
||||||
${5:public} class ${1:Name}
|
${5:public} class ${1:Name}
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : /// <summary> ... </summary>
|
# name: /// <summary> ... </summary>
|
||||||
# key: comment
|
# key: comment
|
||||||
# --
|
# --
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : /// <param name="..."> ... </param>
|
# name: /// <param name="..."> ... </param>
|
||||||
# key: comment
|
# key: comment
|
||||||
# --
|
# --
|
||||||
/// <param name="$1">$2</param>
|
/// <param name="$1">$2</param>
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : /// <param name="..."> ... </param>
|
# name: /// <param name="..."> ... </param>
|
||||||
# key: comment
|
# key: comment
|
||||||
# --
|
# --
|
||||||
/// <returns>$1</returns>
|
/// <returns>$1</returns>
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : /// <exception cref="..."> ... </exception>
|
# name: /// <exception cref="..."> ... </exception>
|
||||||
# key: comment
|
# key: comment
|
||||||
# --
|
# --
|
||||||
/// <exception cref="$1">$2</exception>
|
/// <exception cref="$1">$2</exception>
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : public void Method { ... }
|
# name: public void Method { ... }
|
||||||
# key: method
|
# key: method
|
||||||
# --
|
# --
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : namespace .. { ... }
|
# name: namespace .. { ... }
|
||||||
# key: namespace
|
# key: namespace
|
||||||
# --
|
# --
|
||||||
namespace $1
|
namespace $1
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : property ... ... { ... }
|
# name: property ... ... { ... }
|
||||||
# key: prop
|
# key: prop
|
||||||
# --
|
# --
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : #region ... #endregion
|
# name: #region ... #endregion
|
||||||
# key: region
|
# key: region
|
||||||
# --
|
# --
|
||||||
#region $1
|
#region $1
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : using ...;
|
# name: using ...;
|
||||||
# key: using
|
# key: using
|
||||||
# --
|
# --
|
||||||
using $1;
|
using $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : using System;
|
# name: using System;
|
||||||
# key: using
|
# key: using
|
||||||
# --
|
# --
|
||||||
using System;
|
using System;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
# contributor: Alejandro Espinoza Esparza <aespinoza@structum.com.mx>
|
||||||
#name : using System....;
|
# name: using System....;
|
||||||
# key: using
|
# key: using
|
||||||
# --
|
# --
|
||||||
using System.$1;
|
using System.$1;
|
@ -1,4 +1,4 @@
|
|||||||
#name : background-color: ...
|
# name: background-color: ...
|
||||||
# key: bg
|
# key: bg
|
||||||
# --
|
# --
|
||||||
background-color: #${1:DDD};
|
background-color: #${1:DDD};
|
@ -1,4 +1,4 @@
|
|||||||
#name : background-image: ...
|
# name: background-image: ...
|
||||||
# key: bg
|
# key: bg
|
||||||
# --
|
# --
|
||||||
background-image: url($1);
|
background-image: url($1);
|
@ -1,4 +1,4 @@
|
|||||||
#name : border size style color
|
# name: border size style color
|
||||||
# key: bor
|
# key: bor
|
||||||
# --
|
# --
|
||||||
border: ${1:1px} ${2:solid} #${3:999};
|
border: ${1:1px} ${2:solid} #${3:999};
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : clear: ...
|
# name: clear: ...
|
||||||
# key: cl
|
# key: cl
|
||||||
# --
|
# --
|
||||||
clear: $1;
|
clear: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : display: block
|
# name: display: block
|
||||||
# key: disp
|
# key: disp
|
||||||
# --
|
# --
|
||||||
display: block;
|
display: block;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : display: inline
|
# name: display: inline
|
||||||
# key: disp
|
# key: disp
|
||||||
# --
|
# --
|
||||||
display: inline;
|
display: inline;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : display: none
|
# name: display: none
|
||||||
# key: disp
|
# key: disp
|
||||||
# --
|
# --
|
||||||
display: none;
|
display: none;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : font-family: ...
|
# name: font-family: ...
|
||||||
# key: ff
|
# key: ff
|
||||||
# --
|
# --
|
||||||
font-family: $1;
|
font-family: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : font-size: ...
|
# name: font-size: ...
|
||||||
# key: fs
|
# key: fs
|
||||||
# --
|
# --
|
||||||
font-size: ${12px};
|
font-size: ${12px};
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : margin-bottom: ...
|
# name: margin-bottom: ...
|
||||||
# key: mar
|
# key: mar
|
||||||
# --
|
# --
|
||||||
margin-bottom: $1;
|
margin-bottom: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : margin-left: ...
|
# name: margin-left: ...
|
||||||
# key: mar
|
# key: mar
|
||||||
# --
|
# --
|
||||||
margin-left: $1;
|
margin-left: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : margin: ...
|
# name: margin: ...
|
||||||
# key: mar
|
# key: mar
|
||||||
# --
|
# --
|
||||||
margin: $1;
|
margin: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : margin top right bottom left
|
# name: margin top right bottom left
|
||||||
# key: mar
|
# key: mar
|
||||||
# --
|
# --
|
||||||
margin: ${top} ${right} ${bottom} ${left};
|
margin: ${top} ${right} ${bottom} ${left};
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : margin-right: ...
|
# name: margin-right: ...
|
||||||
# key: mar
|
# key: mar
|
||||||
# --
|
# --
|
||||||
margin-right: $1;
|
margin-right: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : margin-top: ...
|
# name: margin-top: ...
|
||||||
# key: mar
|
# key: mar
|
||||||
# --
|
# --
|
||||||
margin-top: $1;
|
margin-top: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : padding-bottom: ...
|
# name: padding-bottom: ...
|
||||||
# key: pad
|
# key: pad
|
||||||
# --
|
# --
|
||||||
padding-bottom: $1;
|
padding-bottom: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : padding-left: ...
|
# name: padding-left: ...
|
||||||
# key: pad
|
# key: pad
|
||||||
# --
|
# --
|
||||||
padding-left: $1;
|
padding-left: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : padding: ...
|
# name: padding: ...
|
||||||
# key: pad
|
# key: pad
|
||||||
# --
|
# --
|
||||||
padding: $1;
|
padding: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : padding: top right bottom left
|
# name: padding: top right bottom left
|
||||||
# key: pad
|
# key: pad
|
||||||
# --
|
# --
|
||||||
padding: ${top} ${right} ${bottom} ${left};
|
padding: ${top} ${right} ${bottom} ${left};
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : padding-right: ...
|
# name: padding-right: ...
|
||||||
# key: pad
|
# key: pad
|
||||||
# --
|
# --
|
||||||
padding-right: $1;
|
padding-right: $1;
|
@ -1,5 +1,5 @@
|
|||||||
#contributor : rejeep <johan.rejeep@gmail.com>
|
# contributor: rejeep <johan.rejeep@gmail.com>
|
||||||
#name : padding-top: ...
|
# name: padding-top: ...
|
||||||
# key: pad
|
# key: pad
|
||||||
# --
|
# --
|
||||||
padding-top: $1;
|
padding-top: $1;
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: add-hook
|
# name: add-hook
|
||||||
#key: add-hook
|
# key: add-hook
|
||||||
#key: ah
|
# key: ah
|
||||||
# --
|
# --
|
||||||
(add-hook HOOK$0 FUNCTION)
|
(add-hook HOOK$0 FUNCTION)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: and
|
# name: and
|
||||||
#key: and
|
# key: and
|
||||||
#key: a
|
# key: a
|
||||||
# --
|
# --
|
||||||
(and $0)
|
(and $0)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: append
|
# name: append
|
||||||
#key: append
|
# key: append
|
||||||
# --
|
# --
|
||||||
(append $0 )
|
(append $0 )
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: apply
|
# name: apply
|
||||||
#key: apply
|
# key: apply
|
||||||
# --
|
# --
|
||||||
(apply $0 )
|
(apply $0 )
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: aref
|
# name: aref
|
||||||
#key: aref
|
# key: aref
|
||||||
# --
|
# --
|
||||||
(aref ARRAY$0 INDEX)
|
(aref ARRAY$0 INDEX)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: aset
|
# name: aset
|
||||||
#key: aset
|
# key: aset
|
||||||
# --
|
# --
|
||||||
(aset ARRAY$0 IDX NEWELT)
|
(aset ARRAY$0 IDX NEWELT)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: assq
|
# name: assq
|
||||||
#key: assq
|
# key: assq
|
||||||
# --
|
# --
|
||||||
(assq KEY$0 LIST)
|
(assq KEY$0 LIST)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: autoload
|
# name: autoload
|
||||||
#key: autoload
|
# key: autoload
|
||||||
# --
|
# --
|
||||||
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)
|
(autoload 'FUNCNAME$0 "FILENAME" &optional "DOCSTRING" INTERACTIVE TYPE)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: backward-char
|
# name: backward-char
|
||||||
#key: backward-char
|
# key: backward-char
|
||||||
#key: bc
|
# key: bc
|
||||||
# --
|
# --
|
||||||
(backward-char $0)
|
(backward-char $0)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: beginning-of-line
|
# name: beginning-of-line
|
||||||
#key: beginning-of-line
|
# key: beginning-of-line
|
||||||
#key: bol
|
# key: bol
|
||||||
# --
|
# --
|
||||||
(beginning-of-line)
|
(beginning-of-line)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: bounds-of-thing-at-point
|
# name: bounds-of-thing-at-point
|
||||||
#key: bounds-of-thing-at-point
|
# key: bounds-of-thing-at-point
|
||||||
#key: botap
|
# key: botap
|
||||||
# --
|
# --
|
||||||
(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
(bounds-of-thing-at-point '$0) ; symbol, list, sexp, defun, filename, url, email, word, sentence, whitespace, line, page ...
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: buffer-file-name
|
# name: buffer-file-name
|
||||||
#key: buffer-file-name
|
# key: buffer-file-name
|
||||||
#key: bfn
|
# key: bfn
|
||||||
# --
|
# --
|
||||||
(buffer-file-name)
|
(buffer-file-name)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: buffer-modified-p
|
# name: buffer-modified-p
|
||||||
#key: buffer-modified-p
|
# key: buffer-modified-p
|
||||||
#key: bmp
|
# key: bmp
|
||||||
# --
|
# --
|
||||||
(buffer-modified-p $0)
|
(buffer-modified-p $0)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: buffer-substring-no-properties
|
# name: buffer-substring-no-properties
|
||||||
#key: buffer-substring-no-properties
|
# key: buffer-substring-no-properties
|
||||||
#key: bsnp
|
# key: bsnp
|
||||||
# --
|
# --
|
||||||
(buffer-substring-no-properties START$0 END)
|
(buffer-substring-no-properties START$0 END)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: buffer-substring
|
# name: buffer-substring
|
||||||
#key: buffer-substring
|
# key: buffer-substring
|
||||||
#key: bs
|
# key: bs
|
||||||
# --
|
# --
|
||||||
(buffer-substring START$0 END)
|
(buffer-substring START$0 END)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: car
|
# name: car
|
||||||
#key: car
|
# key: car
|
||||||
# --
|
# --
|
||||||
(car $0)
|
(car $0)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: cdr
|
# name: cdr
|
||||||
#key: cdr
|
# key: cdr
|
||||||
# --
|
# --
|
||||||
(cdr $0)
|
(cdr $0)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: concat
|
# name: concat
|
||||||
#key: concat
|
# key: concat
|
||||||
# --
|
# --
|
||||||
(concat $0)
|
(concat $0)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: cond
|
# name: cond
|
||||||
#key: cond
|
# key: cond
|
||||||
# --
|
# --
|
||||||
(cond
|
(cond
|
||||||
(CONDITION$0 BODY)
|
(CONDITION$0 BODY)
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: condition-case
|
# name: condition-case
|
||||||
#key: condition-case
|
# key: condition-case
|
||||||
#key: cc
|
# key: cc
|
||||||
# --
|
# --
|
||||||
(condition-case $0 )
|
(condition-case $0 )
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: cons
|
# name: cons
|
||||||
#key: cons
|
# key: cons
|
||||||
# --
|
# --
|
||||||
(cons $0)
|
(cons $0)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: consp
|
# name: consp
|
||||||
#key: consp
|
# key: consp
|
||||||
# --
|
# --
|
||||||
(consp $0 )
|
(consp $0 )
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: copy-directory
|
# name: copy-directory
|
||||||
#key: copy-directory
|
# key: copy-directory
|
||||||
#key: cd
|
# key: cd
|
||||||
# --
|
# --
|
||||||
(copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS)
|
(copy-directory $0 NEWNAME &optional KEEP-TIME PARENTS)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: copy-file
|
# name: copy-file
|
||||||
#key: copy-file
|
# key: copy-file
|
||||||
#key: cf
|
# key: cf
|
||||||
# --
|
# --
|
||||||
(copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID)
|
(copy-file FILE$0 NEWNAME &optional OK-IF-ALREADY-EXISTS KEEP-TIME PRESERVE-UID-GID)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: current-buffer
|
# name: current-buffer
|
||||||
#key: current-buffer
|
# key: current-buffer
|
||||||
#key: cb
|
# key: cb
|
||||||
# --
|
# --
|
||||||
(current-buffer)
|
(current-buffer)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: custom-autoload
|
# name: custom-autoload
|
||||||
#key: custom-autoload
|
# key: custom-autoload
|
||||||
#key: ca
|
# key: ca
|
||||||
# --
|
# --
|
||||||
(custom-autoload$0 SYMBOL LOAD &optional NOSET)
|
(custom-autoload$0 SYMBOL LOAD &optional NOSET)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: defalias
|
# name: defalias
|
||||||
#key: defalias
|
# key: defalias
|
||||||
# --
|
# --
|
||||||
(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING)
|
(defalias 'SYMBOL$0 'DEFINITION &optional DOCSTRING)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: defcustom
|
# name: defcustom
|
||||||
#key: defcustom
|
# key: defcustom
|
||||||
# --
|
# --
|
||||||
(defcustom $0 VALUE "DOC" &optional ARGS)
|
(defcustom $0 VALUE "DOC" &optional ARGS)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: define-key
|
# name: define-key
|
||||||
#key: define-key
|
# key: define-key
|
||||||
#key: dk
|
# key: dk
|
||||||
# --
|
# --
|
||||||
(define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME)
|
(define-key KEYMAPNAME$0 (kbd "M-b") 'FUNCNAME)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: defsubst
|
# name: defsubst
|
||||||
#key: defsubst
|
# key: defsubst
|
||||||
# --
|
# --
|
||||||
(defsubst $0 )
|
(defsubst $0 )
|
@ -1,7 +1,7 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: defun
|
# name: defun
|
||||||
#key: defun
|
# key: defun
|
||||||
#key: d
|
# key: d
|
||||||
# --
|
# --
|
||||||
(defun $1 ()
|
(defun $1 ()
|
||||||
"DOCSTRING"
|
"DOCSTRING"
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: defvar
|
# name: defvar
|
||||||
#key: defvar
|
# key: defvar
|
||||||
# --
|
# --
|
||||||
(defvar $0 &optional INITVALUE "DOCSTRING")
|
(defvar $0 &optional INITVALUE "DOCSTRING")
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: delete-char
|
# name: delete-char
|
||||||
#key: delete-char
|
# key: delete-char
|
||||||
#key: dc
|
# key: dc
|
||||||
# --
|
# --
|
||||||
(delete-char $0)
|
(delete-char $0)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: delete-directory
|
# name: delete-directory
|
||||||
#key: delete-directory
|
# key: delete-directory
|
||||||
#key: dd
|
# key: dd
|
||||||
# --
|
# --
|
||||||
(delete-directory $0 &optional RECURSIVE)
|
(delete-directory $0 &optional RECURSIVE)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: delete-file
|
# name: delete-file
|
||||||
#key: delete-file
|
# key: delete-file
|
||||||
#key: df
|
# key: df
|
||||||
# --
|
# --
|
||||||
(delete-file $0)
|
(delete-file $0)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: delete-region
|
# name: delete-region
|
||||||
#key: delete-region
|
# key: delete-region
|
||||||
#key: dr
|
# key: dr
|
||||||
# --
|
# --
|
||||||
(delete-region $0 )
|
(delete-region $0 )
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: directory-files
|
# name: directory-files
|
||||||
#key: directory-files
|
# key: directory-files
|
||||||
#key: df
|
# key: df
|
||||||
# --
|
# --
|
||||||
(directory-files $0 &optional FULL MATCH NOSORT)
|
(directory-files $0 &optional FULL MATCH NOSORT)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: dolist
|
# name: dolist
|
||||||
#key: dolist
|
# key: dolist
|
||||||
# --
|
# --
|
||||||
(dolist $0 )
|
(dolist $0 )
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: end-of-line
|
# name: end-of-line
|
||||||
#key: end-of-line
|
# key: end-of-line
|
||||||
#key: eol
|
# key: eol
|
||||||
# --
|
# --
|
||||||
(end-of-line)
|
(end-of-line)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: eq
|
# name: eq
|
||||||
#key: eq
|
# key: eq
|
||||||
# --
|
# --
|
||||||
(eq $0)
|
(eq $0)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: equal
|
# name: equal
|
||||||
#key: equal
|
# key: equal
|
||||||
# --
|
# --
|
||||||
(equal $0)
|
(equal $0)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: error
|
# name: error
|
||||||
#key: error
|
# key: error
|
||||||
# --
|
# --
|
||||||
(error "$0" &optional ARGS)
|
(error "$0" &optional ARGS)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: expand-file-name
|
# name: expand-file-name
|
||||||
#key: expand-file-name
|
# key: expand-file-name
|
||||||
#key: efn
|
# key: efn
|
||||||
# --
|
# --
|
||||||
(expand-file-name $0 )
|
(expand-file-name $0 )
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: format
|
# name: format
|
||||||
#key: format
|
# key: format
|
||||||
# --
|
# --
|
||||||
(format "$0" &optional OBJECTS)
|
(format "$0" &optional OBJECTS)
|
@ -1,5 +1,5 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: fboundp
|
# name: fboundp
|
||||||
#key: fboundp
|
# key: fboundp
|
||||||
# --
|
# --
|
||||||
(fboundp '$0 )
|
(fboundp '$0 )
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: file-name-directory
|
# name: file-name-directory
|
||||||
#key: file-name-directory
|
# key: file-name-directory
|
||||||
#key: fnd
|
# key: fnd
|
||||||
# --
|
# --
|
||||||
(file-name-directory $0)
|
(file-name-directory $0)
|
@ -1,6 +1,6 @@
|
|||||||
#contributor: Xah Lee (XahLee.org)
|
# contributor: Xah Lee (XahLee.org)
|
||||||
#name: file-name-extension
|
# name: file-name-extension
|
||||||
#key: file-name-extension
|
# key: file-name-extension
|
||||||
#key: fne
|
# key: fne
|
||||||
# --
|
# --
|
||||||
(file-name-extension $0 &optional PERIOD)
|
(file-name-extension $0 &optional PERIOD)
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
x
Reference in New Issue
Block a user