Yasnippet Configurations

Table of Contents

1 yasnippet

1.1 default

1.1.1 web-mode/

  1. html5
    # name: html5
    # key: html
    # --
    <!DOCTYPE html>
    <html>
    <head>
        <meta charset="utf-8">
        <title></title>
    </head>
    <body>
    
    </body>
    </html>
    

1.1.2 php-mode/

  1. _call
    # -*- mode: snippet -*-
    # contributor: USAMI Kenta <tadsan@zonu.me>
    # name: __call()
    # key: __call
    # group: Magic Methods
    # --
    public function __call($name, $args)
    {
        $0
    }
    
  2. class
    # -*- mode: snippet -*-
    # contributor: USAMI Kenta <tadsan@zonu.me>
    # name: class
    # key: cls
    # group: definitions
    # --
    class ${1:`(yas-php-get-class-name-by-file-name)`}
    {
      $0
    }
    
  3. const
    # -*- mode: snippet -*-
    # contributor: USAMI Kenta <tadsan@zonu.me>
    # name: const
    # key: const
    # group: definitions
    # --
    const ${1:NAME} = ${2:value};
    
  4. doc
    # -*- mode: snippet -*-
    # contributor: USAMI Kenta <tadsan@zonu.me>
    # name: PHPDoc (multi-line)
    # key: /**
    # group: annotation
    # --
    /**
     * ${1:Summary}
     *
     * $0
     */
    
  5. enum
    # -*- mode: snippet -*-
    # contributor: takeo obara<bararararatty@gmail.com>
    # name: enum
    # key: enum
    # group : definitions
    # --
    enum ${1:Name}
    {
        case: ${2:One};
        case: ${2:Two};
    $0
    }
    
  6. foreach
    # -*- mode: snippet -*-
    # contributor: USAMI Kenta <tadsan@zonu.me>
    # name: foreach
    # key: foreach
    # group : control structure
    # --
    foreach (${1:$expression} as \$${2:value}) {
        $0
    }
    
  7. function
    # -*- mode: snippet -*-
    # contributor: USAMI Kenta <tadsan@zonu.me>
    # name: function :type
    # key: function
    # group : control structure
    # --
    ${4:public }function ${1:name}(${2:$arg, ...}): ${3:type}
    {
        $0
    }
    
  8. interface
    # -*- mode: snippet -*-
    # contributor: USAMI Kenta <tadsan@zonu.me>
    # name: interface
    # key: interface
    # group : definitions
    # --
    interface ${1:`(yas-php-get-class-name-by-file-name)`}
    {
        $0
    }
    
  9. psysh
    # -*- mode: snippet -*-
    # contributor: USAMI Kenta <tadsan@zonu.me>
    # name: psysh
    # key: psysh
    # group: generic
    # --
    eval(\Psy\sh());
    
  10. match
    # -*- mode: snippet -*-
    # contributor: takeo obara<bararararatty@gmail.com>
    # name: match
    # key: match
    # group : control structure
    # --
    match (${1:$var}) {
        ${2:$cond} => ${3:$return},
    $0
    };
    
  11. trait
    # -*- mode: snippet -*-
    # contributor: USAMI Kenta <tadsan@zonu.me>
    # name: trait
    # key: trait
    # group : definitions
    # --
    trait ${1:`(yas-php-get-class-name-by-file-name)`}
    {
        $0
    }
    
  12. vd
    # -*- mode: snippet -*-
    # contributor: USAMI Kenta <tadsan@zonu.me>
    # name: var_dump()
    # key: vd
    # group: generic
    # --
    var_dump(${1:$var});
    

1.1.3 emacs-lisp-mode/

  1. cond
    # -*- mode: snippet -*-
    # contributor: Xah Lee (XahLee.org)
    # name: cond
    # key: cond
    # --
    (cond
     (${1:condition} ${2:body})$0)
    
  2. header
    # -*- mode: snippet; -*-
    # contributor: kchenphy <https://www.github.com/kchenphy>
    # name: package header
    # key: header
    # --
    ;;; ${1:name}.el --- ${2:summary} -*- lexical-binding: t -*-
    
    ;; Author: ${3:`(user-full-name)`}
    ;; Maintainer: ${4:`(user-full-name)`}
    ;; Version: ${5:version}
    ;; Package-Requires: (${6:dependencies})
    ;; Homepage: ${7:homepage}
    ;; Keywords: ${8:keywords}
    
    ${9:
    ;; This file is not part of GNU Emacs
    
    ;; This file is free software; you can redistribute it and/or modify
    ;; it under the terms of the GNU General Public License as published by
    ;; the Free Software Foundation; either version 3, or (at your option)
    ;; any later version.
    
    ;; This program is distributed in the hope that it will be useful,
    ;; but WITHOUT ANY WARRANTY; without even the implied warranty of
    ;; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    ;; GNU General Public License for more details.
    
    ;; For a full copy of the GNU General Public License
    ;; see <http://www.gnu.org/licenses/>.
    }
    
    ;;; Commentary:
    
    ;; ${10:commentary}
    
    ;;; Code:
    
    ${11:(message "Hello World!")}
    
    (provide '$1)
    
    ;;; $1.el ends here
    
  3. kill-buffer
    # -*- mode: snippet -*-
    # contributor: Xah Lee (XahLee.org)
    # name: kill-buffer
    # key: kill-buffer
    # key: kb
    # --
    (kill-buffer $0)
    
  4. lambda
    # -*- mode: snippet; -*-
    # contributor: Xah Lee (XahLee.org)
    # name: lambda
    # key: lam
    # --
    (lambda ($1) ${2:(interactive${3: "$4"}) }$0)
    
    
  5. leaf
    # name: leaf
    # key: leaf
    # --
    (leaf ${1:package-name}
          :ensure t
          $0)
    
  6. minormode
    # -*- mode: snippet -*-
    # name: minor_mode
    # key: minor
    # --
    (defvar ${1:mode}-modeline-indicator " ${2:indicator}"
      "call ($1-install-mode) again if this is changed")
    
    (defvar $1-mode nil)
    (make-variable-buffer-local '$1-mode)
    (put '$1-mode 'permanent-local t)
    
    (defun $1-mode (&optional arg)
      "$0"
      (interactive "P")
      (setq $1-mode
    	(if (null arg) (not $1-mode)
    	  (> (prefix-numeric-value arg) 0)))
      (force-mode-line-update))
    
    (provide '$1-mode)
    

1.1.4 fish-mode/

  1. bang
    # name: bang
    # key: !
    # --
    #!/usr/bin/env fish
    $0
    
    
  2. block
    # name: begin ... end
    # key: block
    # --
    begin
        $0
    end
    
    
  3. breakpoint
    # name: breakpoint
    # key: breakpoint
    # --
    breakpoint
    $0
    
  4. for
    # name: for loop
    # key: for
    # --
    for ${1:var} in ${2:stuff}
        $0
    end
    
    
  5. function
    # name: function
    # key: function
    # --
    function ${1:name}
        $0
    end
    
    
  6. if
    # name: if ... ... else ... end
    # key: if
    # --
    if ${1:cond}
        ${2:stuff}
    else
        ${3:other}
    end
    $0
    
    
  7. switch
    # name: switch
    # key: switch
    # --
    switch ${1:condition}
        case ${2:*}
    	 ${0}
    end
    
    
  8. while
    # name: while loop
    # key: while
    # --
    while ${1:cond}
        $0
    end
    
    

1.1.5 fundamental-mode/

  1. current-date
    # name: current-date
    # key: dd
    # contributor : Kristof Molnar-Tatai <kristof.mlnr@gmail.com>
    # --
    `(format-time-string "%Y-%m-%d")`
    
  2. mode-line
    # name: Mode line
    # key: mode-line
    # --
    # -*- mode:${1:conf}; -*-
    

1.1.6 git-commit-mode/

  1. .yas-parents
    text-mode
    
  2. type
    # name: type
    # key: type
    # --
    ${1:$$(yas-choose-value '("fix" "hotfix" "add" "update" "change" "clean" "disable" "remove" "upgrade" "revert"))} $0
    

1.1.7 go-mode/

  1. append
    # name: for append
    # key: append
    # --
    $1 = append($1, $0)
    
  2. case
    # name: switch case
    # key: case
    # --
    case $1:
    	$0
    
  3. error
    # name: error
    # key: error
    # --
    if err != nil {
    	$0
    }
    
  4. for
    # name: for range
    # key: range
    # --
    for ${3:key}, ${2:value} := range ${1:target} {
    	$0
    }
    
  5. func
    # name: func
    # key: func
    # --
    
    func ($2) $1 ($3) {
    	$0
    }
    
  6. init
    # name: init
    # key: init
    # --
    func init(){
    	$0
    }
    
  7. interface
    # name: interface
    # key: type
    # --
    type $1 interface {
    	$0
    }
    
  8. main
    # name: main
    # key: main
    # --
    func main() {
    	$0
    }
    
  9. package
    # name: package
    # key: package
    # --
    package ${1:main}
    
  10. struct
    # name: struct
    # key: struct
    # --
    
    type $1 struct {
    $0
    }
    
    
  11. switch
    # name: for switch
    # key: switch
    # --
    switch $1 {
    	case $2:
    		$0
    	default:
    }
    

    ** **

  12. test
    # name: test
    # key: test
    # --
    func Test$1(t *testing.T) {
    	$0
    }
    

1.1.8 js-mode/

  1. alert
    # name: alert
    # key: alert
    # --
    alert($0);
    
  2. class
    # name: class
    # key: class
    # --
    class ${1:Class}${2: extends ${3:ParentClass}} {
      ${4:constructor(${5:arg}) {
        ${6:super(arg);}
        $7
      }}
    
      $0
    }
    
  3. comment
    # name: comment (/* ... */)
    # key: comment
    # --
    /*
     * $0
     */
    
  4. comment-big-block
    # name: Comment Big Block
    # key: comment-big-block
    # --
    
    /**
    |--------------------------------------------------
    | $1
    |--------------------------------------------------
    */
    
  5. comment-multiline
    # name: comment-multiline
    # key: /**
    # --
    /**
     * $0
     */
    
  6. const
    # name: const declaration
    # key: const
    # --
    const ${1:name} = ${2:initial};
    
  7. each
    # name: each
    # --
    ${1:collection}.forEach(function (${2:elem}) {
      $0
    });
    
  8. else
    # name: else
    # key: else
    # --
    else {
      $0
    }
    
  9. export-const
    # uuid: 095f24bf-5c76-4d0b-862e-a1f0ab1e1b95
    # contributor: Jimmy Yuen Ho Wong <wyuenho@gmail.com>
    # name: exportNamedFunction
    # key: enf
    # --
    
    export const ${1:functionName} = (${2:params}) => {
      $0
    }
    
  10. export-default
    # name: exportDefault
    # key: export-default
    # --
    
    export default $1$0
    
  11. export-default-function
    # name: exportDefaultFunction
    # key: export-default-function
    # --
    
    export default (${1:params}) => {
      $0
    }
    
  12. for-in
    # name: for-in
    # key: for-in
    # --
    
    for(const ${1:item} in ${2:object}) {
      ${0}
    }
    
  13. for-of
    # name: for-of
    # key: fof-of
    # --
    
    for(const ${1:item} of ${2:object}) {
      ${0}
    }
    
  14. for
    # name: for
    # --
    for (let ${1:i} = ${2:0}; $1 < ${3:collection}.length; $1++) {
      $0
    }
    
  15. function
    # name: function
    # key: function
    # --
    function ${1:name}(${2:arg}) {
    	 $0
    }
    
    
  16. if
    # name: if
    # --
    if (${1:condition}) {
      $0
    }
    
  17. lambda
    # name: lambda
    # key: lambda
    # --
    const ${1:name} = (${2:args}) => {
      $0
    };
    
  18. log
    # name: log (console.log)
    # key: log
    # --
    console.log("$1: ", ${1:var})
    
  19. import
    # name: import
    # key: import
    # --
    
    import ${2:moduleName} from '${1:module}'$0
    
  20. let
    # name: let declaration
    # key: let
    # --
    let ${1:name} = ${2:initial};
    
  21. setInterval
    # name: setInterval
    # key: setInterval
    # --
    
    setInterval(() => {
      ${2}
    }, ${0:intervalInms})
    
  22. setTimeout
    # name: setTimeOut
    # key: setTimeOut
    # --
    
    setTimeout(() => {
      ${2}
    }, ${1:delayInms})
    
  23. styled
    # name: styled
    # key: styled
    # --
    
    const $1 = styled.$2\`
      $0
    \`
    
  24. switch
    # name: switch
    # key: switch
    # --
    switch (${1:condition}) {
      case ${2:expression}:
        $0
        break;
      default:
    }
    
  25. try-catch
    # name: try...catch statement
    # key: try
    # --
    try {
      $1
    } catch (err) {
      $2
    }${3: finally {
      $4
    }}
    

1.1.9 js2-mode/

  1. .yas-parents
    js-mode
    

1.1.10 lisp-mode/

  1. main
    # name: main
    # key: main
    # --
    (defun main () $0)
    
  2. class
    # name: class
    # key: cls
    # --
    (defclass ${1:name} (${2:inherits})
       (${4:slot})
       (:documentation "${3:doc}"))
    $0
    
  3. comment
    # name: comment
    # key: /*
    # --
    #|${1:type the comment here}|#
    $0
    
  4. cond
    # name: cond
    # key: cond
    # --
    (cond (${1:case1} (${2:do-this}))
          (${3:case2} (${4:do-this}))
          (t ${5:default}))
    $0
    
  5. defun
    # name: defun
    # key: defun
    # --
    (defun ${1:fun} (${2:args})
           $0
    )
    
  6. defpackage
    # name: defpackage
    # key: defp
    # --
    (defpackage #:${1:name}
       (:nicknames #:${2:nick})
       (:use #:cl #:closer-mop #:${3:package})
       (:shadow :${4.symbol})
       (:shadowing-import-from #:${5:package} #:${6:symbol})
       (:export :$0))
    
  7. do
    # name: do
    # key: do
    # --
    (do ((${1:var1} ${2:init-form} ${3:step-form})
         (${4:var2} ${5:init-form} ${6:step-form}))
        (${7:condition} ${8:return-value})
        (${9:body}))
    $0
    
  8. for
    # name: do
    # key: for
    # --
    (dotimes (${1:var} ${2:count-form})
    	 ${3:body})
    $0
    
  9. foreach
    # name: do
    # key: foreach
    # --
    (dolist (${1:var} ${2:list-form})
    	${3:body})
    $0
    
  10. format
    # name: format
    # key: print
    # --
    (format t "~& $0 ~%")
    
  11. if
    # name: if
    # key: if
    # --
    (when (${1:condition})
          (${2:then-do-this}))
    $0
    
  12. ifelse
    # name: ifelse (...) (...) (...) ...
    # key: ifelse
    # --
    (if (${1:condition})
        (${2:then})
        (${3:else}))
    $0
    
  13. ifnot
    # name: ifnot (...) (...)  ...
    # key: ifnot
    # --
    (unless (${1:condition})
    	(${2:then-do-this}))
    $0
    
  14. slot
    # name: slot
    # key: slot
    # --
    (${1:name} :initarg :${1:$(yas/substr yas-text "[^: ]*")}
    	   :initform (error ":${1:$(yas/substr yas-text "[^: ]*")} must be specified")
    	   ;; :accessor ${1:$(yas/substr yas-text "[^: ]*")}
    	   :reader ${1:$(yas/substr yas-text "[^: ]*")}-changed
    	   :writer set-${1:$(yas/substr yas-text "[^: ]*")}
    	   :type
    	   :allocation ${3::class :instance}
    	   :documentation "${2:about-slot}")
    $0
    
  15. typecast
    # name: typecast
    # name: cast
    # --
    (coerce ${1:object} ${2:type})
    $0
    

1.1.11 makefile-mode/

  1. all
    # name: all
    # key: all
    # --
    .PHONY: all
    all:
    	$0
    
  2. phony
    # name: phony
    # --
    .PHONY: $1
    $1:
    	$0
    

1.1.12 markdown-mode/

  1. code
    # name: Code block
    # key: code
    # --
    \`\`\`$1
    $0
    \`\`\`
    
  2. highlight
    # name: Highlight
    # contributor: nguyenvinhlinh <nguyenvinhlinh93@gmail.com>
    # key: highlight
    # --
    {% highlight ${1:language} %}
    ${0:content}
    {% endhighlight %}
    
  3. hr
    # name: Horizontal Rule (-)
    # key: hr
    # --
    ----------
    $0
    
  4. img
    # name: Image
    # contributor: Peng Deng <dengpeng@gmail.com>
    # key: img
    # --
    ![${1:Alt Text}](${2:URL} $3) $0
    
  5. link
    # name: Link
    # contributor: Peng Deng <dengpeng@gmail.com>
    # key: link
    # --
    [${1:Link Text}](${2:URL} $3) $0
    

1.1.13 org-mode/

  1. atcoder
    # name: atcoder
    # key: atcoder
    # --
    ** ${1:name}
    *** definition
        #+name: $1
        #+BEGIN_SRC lisp :noweb yes
        #+END_SRC
    *** usage
        #+BEGIN_SRC lisp
        #+END_SRC
    
  2. author
    # name: author
    # key: <au
    # --
    #+author: $0
    
  3. center
    # name: center
    # key: <c
    # --
    #+begin_center
    $0
    #+end_center
    
  4. date
    # name: date
    # key: <da
    # --
    #+date: ${1:year}:${2:month}:${3:day}
    
  5. description
    # name: description
    # key: desc
    # --
    #+description: $0
    
  6. email
    # name: email
    # key: <em
    # --
    #+email: $0
    
  7. embedded
    # name: embedded
    # key: emb_
    # --
    src_${1:lang}${2:[${3:where}]}{${4:code}}
    
  8. entry
    # name: entry
    # key: entry_
    # --
    #+begin_html
    ---
    layout: ${1:default}
    title: ${2:title}
    ---
    #+end_html
    
  9. exampleblock
    # name: example
    # key: <e
    # --
    #+begin_example
    $0
    #+end_example
    
  10. export
    # name: export
    # key: <ex
    # --
    #+begin_export ${1:type}
    $0
    #+end_export
    
  11. figure
    # name: figure
    # key: fig_
    # --
    #+caption: ${1:caption}
    #+attr_latex: ${2:scale=0.75}
    #+label: fig:${3:label}$0
    
  12. html
    # name: html
    # key: <ht
    # --
    #+html:$1
    
  13. image
    # name: image
    # key: <im
    # --
    #+caption: ${1:caption of the image}
    [[file:${2:image_path}]]$0
    
  14. img
    # name: img
    # key: img_
    # --
    <img src="$1" alt="$2" align="${3:left}" title="${4:image title}" class="img" $5/>$0
    
  15. include
    # name: include
    # key: <i
    # --
    #+include: $0
    
  16. keywords
    # name: keywords
    # key: <ke
    # --
    #+keywords: $0
    
  17. language
    # name: language
    # key: <lan
    # --
    #+language: ${1:en}
    
  18. link
    # name: link
    # key: <li
    # --
    [[${1:link}][${2:description}]]
    
  19. matrix
    # name: matrix
    # key: matrix_
    # possible improvement, compute the number of lines from the argument to array
    # --
    \left \(
    \begin{array}{${1:ccc}}
    ${2:v1 & v2} \\
    $0
    \end{array}
    \right \)
    
  20. options
    # name: options
    # key: <op
    # --
    #+options: h:${1:1} num:${2:t||nil} toc:${3:t||nil}$0
    
  21. rvbackground
    # name: reveal_single_colored_background
    # key: <rsb
    # --
    :properties:
    :reveal_background: ${1: #123456}
    :end:
    
  22. rvimagebackground
    # name: reveal_image_background
    # key: <rib
    # --
        :properties:
        :reveal_background: ${1: path of the image}
        :reveal_background_trans: ${2: default||cube||page||concave||zoom||linear||fade||none||slide}
        :end:
    
  23. setup
    # name: setup
    # key: set
    # --
    #+setupfile: $0
    
  24. style
    # name: style
    # key: <st
    # --
    #+style: <link rel="stylesheet" type="text/css" href="$1" />
    
  25. table
    # name: table
    # key: <ta
    # --
    #+caption: ${1: caption of the table}
    |${2:column 1} | ${3: column 2} |
    |--------------+----------------|
    
  26. title
    # name: title
    # key: <ti
    # --
    #+title: $0
    
  27. uml
    # name: uml
    # key: uml
    # contributor : Robert O'Connor
    # --
    #+begin_uml
    $1
    #+end_uml
    
  28. verse
    # name: verse
    # key: <v
    # --
    #+begin_verse
    $0
    #+end_verse
    
  29. video
    # name: video
    # key: <vi
    # --
    [[${1:link of the video}][file:${2:link of the image}]
    
  30. roam
    # name: roam
    # key: <roam
    # --
    #+roam_tags: $0
    

1.1.14 prog-mode/

  1. .yas-setup.el
    (require 'yasnippet)
    ;; whitespace removing functions from Magnar Sveen ;;;;;;;;;;;;;;;;;;;;;;;;;;;;
    (defun yas-s-trim-left (s)
      "Remove whitespace at the beginning of S."
      (if (string-match "\\`[ \t\n\r]+" s)
          (replace-match "" t t s)
        s))
    (defun yas-s-trim-right (s)
      "Remove whitespace at the end of S."
      (if (string-match "[ \t\n\r]+\\'" s)
          (replace-match "" t t s)
        s))
    (defun yas-s-trim (s)
      "Remove whitespace at the beginning and end of S."
      (yas-s-trim-left (yas-s-trim-right s)))
    (defun yas-string-reverse (str)
      "Reverse a string STR manually to be compatible with emacs versions < 25."
      (apply #'string
    	 (reverse
    	  (string-to-list str))))
    (defun yas-trimmed-comment-start ()
      "This function returns `comment-start' trimmed by whitespaces."
      (yas-s-trim comment-start))
    (defun yas-trimmed-comment-end ()
      "This function returns `comment-end' trimmed by whitespaces if `comment-end' is not empty.
    Otherwise the reversed output of function `yas-trimmed-comment-start' is returned."
      (if (eq (length comment-end) 0)
          (yas-string-reverse (yas-trimmed-comment-start))
        (yas-s-trim comment-end)))
    
  2. comment
    # contributor: sh-ow <sh-ow@users.noreply.github.com>
    # name: comment
    # key: co
    # --
    `(yas-trimmed-comment-start)` ${1:comment}`(unless (eq (length comment-end) 0) (concat " " (yas-trimmed-comment-end)))`$0
    
  3. commentblock
    # contributor: sh-ow <sh-ow@users.noreply.github.com>
    # name: commentblock
    # key: cob
    # --
    ${1:$(let* ((col (current-column))
    	   (str "")
    	   (lastcom (substring (yas-trimmed-comment-start) -1))
    	   (start (yas-trimmed-comment-start))
    	   (end (yas-trimmed-comment-end))
    	   (over (- (+ (string-width yas-text) (length start) (length end) col) 77)))
    	 (while (< (length str) (+ (- 79 (length start) (length end) col) (if (> over 0) over 0)))
    		(setq str (concat str lastcom)))
           (concat start str end))}
    ${1:$(let* ((col (current-column))
    	   (str "")
    	   (start (yas-trimmed-comment-start))
    	   (end (yas-trimmed-comment-end)))
    	 (while (< (length str) (ffloor (/ (- 78.0 (+ col (length start) (string-width yas-text) (length end))) 2.0)))
    		(setq str (concat str " ")))
    	(concat start str))} ${1:comment} ${1:$(let* ((col (current-column))
    						     (str "")
    						     (start (yas-trimmed-comment-start))
    						     (end (yas-trimmed-comment-end)))
    						   (while (< (length str) (- 79.0 (if (eq (mod (string-width yas-text) 2) 1) (- col 1) col) (length end)))
    							  (setq str (concat str " ")))
    						 (concat str end))}
    ${1:$(let* ((col (current-column))
    	   (str "")
    	   (lastcom (substring (yas-trimmed-comment-start) -1))
    	   (start (yas-trimmed-comment-start))
    	   (end (yas-trimmed-comment-end))
    	   (over (- (+ (string-width yas-text) (length start) (length end) col) 77)))
    	 (while (< (length str) (+ (- 79 (length start) (length end) col) (if (> over 0) over 0)))
    		(setq str (concat str lastcom)))
           (concat start str end))}$0
    
  4. commentline
    # contributor: sh-ow <sh-ow@users.noreply.github.com>
    # name: commentline
    # key: col
    # --
    `(yas-trimmed-comment-start)` ${1:comment} ${1:$(let* ((start (yas-trimmed-comment-start))
    						       (lastcom (aref start (1- (length start))))
    						       (end (yas-trimmed-comment-end))
    						       (endpadlen (- 79 (+ (current-column) (length end)))))
    					      (concat (make-string (max endpadlen 0) lastcom)
    						      end))}$0
    
  5. fixme
    # name: fixme
    # key: fi
    # condition: (not (eq major-mode 'sh-mode))
    # --
    `comment-start`FIXME: $0`comment-end`
    
  6. todo
    # name: todo
    # key: t
    # --
    `comment-start`TODO: $0`comment-end`
    
  7. xxx
    # name: xxx
    # key: x
    # --
    `comment-start`XXX: $0`comment-end`
    

1.1.15 snippet-mode/

  1. header
    # name: header
    # key: header
    # --
    
    # name: ${1:name}
    # key: ${2:key}
    # --
    
    $0
    

1.1.16 sql-mode/

  1. insert
    # name: insert
    # key: ins
    # --
    INSERT INTO ${table-name} (${col1, col2}) VALUES (${'val1', 'val2'});$0
    

1.1.17 typescript-mode/

  1. .yas-parents
    js-mode
    
  2. namespace
    # name: namespace
    # key: namespace
    # --
    
    namespace $1 {
      $0
    }
    
  3. type
    # name: type
    # key: type
    # --
    type $1 = {
      $0
    }
    

Author: takeokunn

Created: 2021-10-04 Mon 15:40

Validate