0.1.2 • Published 8 years ago

yasel v0.1.2

Weekly downloads
3
License
GPLv3+
Repository
github
Last release
8 years ago

Yasel

Yasel (Yasnippet Expand License) outputs commented license snippets for use with Emacs and Yasnippet from a directory of snippet templates.

Usage: yasel <src> <dest> [options]

src      Path to the license template directory
dest     Path to your snippets directory

Options:
   -c FILE, --modes-config FILE   Path to modes config.  [./.yasel.json]
   -h, --help                     Show this help.

Example ~/.emacs.d/.yasel.json:

{
    "c-mode": {
        "pre":  "/*",
        "body": " * ",
        "post": " */"
    },
    "c++-mode": {
        "pre":  "/*",
        "body": " * ",
        "post": " */"
    },
    "emacs-lisp-mode": {
        "body": ";; "
    },
    "go-mode": {
        "pre":  "/*",
        "body": " * ",
        "post": " */"
    },
    "haskell-mode": {
        "body": "-- "
    },
    "js-mode": {
        "pre":  "/*",
        "body": " * ",
        "post": " */"
    },
    "lua-mode": {
        "pre":  "--[[",
        "body": "  * ",
        "post": "--]]"
    },
    "sh-mode": {
        "body": "# "
    }
}
0.1.2

8 years ago

0.1.1

9 years ago