feat: initial commit
This commit is contained in:
1
.emacs.snippets/c++-mode/.yas-parents
Executable file
1
.emacs.snippets/c++-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-mode
|
||||
7
.emacs.snippets/c++-mode/catch
Executable file
7
.emacs.snippets/c++-mode/catch
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: catch (...) { ... }
|
||||
# key: catch
|
||||
# --
|
||||
catch ($1) {
|
||||
$0
|
||||
}
|
||||
7
.emacs.snippets/c++-mode/fore
Executable file
7
.emacs.snippets/c++-mode/fore
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: for (...: ...) { ... }
|
||||
# key: fore
|
||||
# --
|
||||
for ($1: $2) {
|
||||
$0
|
||||
}
|
||||
7
.emacs.snippets/c++-mode/ns
Executable file
7
.emacs.snippets/c++-mode/ns
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: namespace Namespace
|
||||
# key: ns
|
||||
# --
|
||||
namespace ${1:Namespace} {
|
||||
$0
|
||||
} // namespace $1
|
||||
10
.emacs.snippets/c++-mode/once
Executable file
10
.emacs.snippets/c++-mode/once
Executable file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: #ifndef XXX; #define XXX; #endif
|
||||
# key: once
|
||||
# --
|
||||
#ifndef ${1:`(upcase (replace-regexp-in-string "\\." "_" (file-name-nondirectory (buffer-file-name))))`_}
|
||||
#define $1
|
||||
|
||||
$0
|
||||
|
||||
#endif // $1
|
||||
7
.emacs.snippets/c++-mode/qdebug
Executable file
7
.emacs.snippets/c++-mode/qdebug
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: qdebug
|
||||
# key: qdebug
|
||||
# --
|
||||
qDebug() << "----------------------------------------";
|
||||
qDebug() << "$0";
|
||||
qDebug() << "----------------------------------------";
|
||||
7
.emacs.snippets/c++-mode/try
Executable file
7
.emacs.snippets/c++-mode/try
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: try { ... }
|
||||
# key: try
|
||||
# --
|
||||
try {
|
||||
$0
|
||||
}
|
||||
5
.emacs.snippets/c++-mode/uns
Executable file
5
.emacs.snippets/c++-mode/uns
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: using namespace std;
|
||||
# key: uns
|
||||
# --
|
||||
using namespace std;
|
||||
5
.emacs.snippets/c++-mode/vec
Executable file
5
.emacs.snippets/c++-mode/vec
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: std::vector<T>
|
||||
# key: vec
|
||||
# --
|
||||
std::vector<$1> $2;$0
|
||||
7
.emacs.snippets/c-like-syntax/block
Executable file
7
.emacs.snippets/c-like-syntax/block
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: { ... }
|
||||
# key: {
|
||||
# --
|
||||
{
|
||||
$0
|
||||
}
|
||||
7
.emacs.snippets/c-like-syntax/elif
Executable file
7
.emacs.snippets/c-like-syntax/elif
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: else if (...) { ... }
|
||||
# key: elif
|
||||
# --
|
||||
else if (${1:condition}) {
|
||||
$0
|
||||
}
|
||||
7
.emacs.snippets/c-like-syntax/else
Executable file
7
.emacs.snippets/c-like-syntax/else
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: else { ... }
|
||||
# key: else
|
||||
# --
|
||||
else {
|
||||
$0
|
||||
}
|
||||
7
.emacs.snippets/c-like-syntax/for
Executable file
7
.emacs.snippets/c-like-syntax/for
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: for (...; ...; ...) { ... }
|
||||
# key: for
|
||||
# --
|
||||
for (${1:init}; ${2:condition}; ${3:increment}) {
|
||||
$0
|
||||
}
|
||||
7
.emacs.snippets/c-like-syntax/if
Executable file
7
.emacs.snippets/c-like-syntax/if
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: if (...) { ... }
|
||||
# key: if
|
||||
# --
|
||||
if (${1:condition}) {
|
||||
$0
|
||||
}
|
||||
7
.emacs.snippets/c-like-syntax/while
Executable file
7
.emacs.snippets/c-like-syntax/while
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: while (...) { ... }
|
||||
# key: while
|
||||
# --
|
||||
while (${1:condition}) {
|
||||
$0
|
||||
}
|
||||
1
.emacs.snippets/c-mode/.yas-parents
Executable file
1
.emacs.snippets/c-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-like-syntax
|
||||
5
.emacs.snippets/c-mode/inc
Executable file
5
.emacs.snippets/c-mode/inc
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: #include <...>
|
||||
# key: inc
|
||||
# --
|
||||
#include <$0>
|
||||
5
.emacs.snippets/c-mode/incq
Executable file
5
.emacs.snippets/c-mode/incq
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: #include "..."
|
||||
# key: incq
|
||||
# --
|
||||
#include "$0"
|
||||
9
.emacs.snippets/c-mode/main
Executable file
9
.emacs.snippets/c-mode/main
Executable file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: int main(argc, argv) { ... }
|
||||
# key: main
|
||||
# --
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
$0
|
||||
return 0;
|
||||
}
|
||||
5
.emacs.snippets/css-mode/bg
Executable file
5
.emacs.snippets/css-mode/bg
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: background-color: ...
|
||||
# key: bg
|
||||
# --
|
||||
background-color: #${1:DDD};
|
||||
5
.emacs.snippets/css-mode/bgi
Executable file
5
.emacs.snippets/css-mode/bgi
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: background-image: ...
|
||||
# key: bgi
|
||||
# --
|
||||
background-image: url($1);
|
||||
5
.emacs.snippets/css-mode/bor
Executable file
5
.emacs.snippets/css-mode/bor
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: border size style color
|
||||
# key: bor
|
||||
# --
|
||||
border: ${1:1px} ${2:solid} #${3:999};
|
||||
5
.emacs.snippets/css-mode/cl
Executable file
5
.emacs.snippets/css-mode/cl
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: clear: ...
|
||||
# key: cl
|
||||
# --
|
||||
clear: $1;
|
||||
5
.emacs.snippets/css-mode/dispb
Executable file
5
.emacs.snippets/css-mode/dispb
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: display: block
|
||||
# key: dispb
|
||||
# --
|
||||
display: block;
|
||||
5
.emacs.snippets/css-mode/dispi
Executable file
5
.emacs.snippets/css-mode/dispi
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: display: inline
|
||||
# key: dispi
|
||||
# --
|
||||
display: inline;
|
||||
5
.emacs.snippets/css-mode/dispn
Executable file
5
.emacs.snippets/css-mode/dispn
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: display: none
|
||||
# key: dispn
|
||||
# --
|
||||
display: none;
|
||||
5
.emacs.snippets/css-mode/ff
Executable file
5
.emacs.snippets/css-mode/ff
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: font-family: ...
|
||||
# key: ff
|
||||
# --
|
||||
font-family: $1;
|
||||
5
.emacs.snippets/css-mode/fs
Executable file
5
.emacs.snippets/css-mode/fs
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: font-size: ...
|
||||
# key: fs
|
||||
# --
|
||||
font-size: ${12px};
|
||||
5
.emacs.snippets/css-mode/mar
Executable file
5
.emacs.snippets/css-mode/mar
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: margin: ...
|
||||
# key: mar
|
||||
# --
|
||||
margin: $1;
|
||||
5
.emacs.snippets/css-mode/marb
Executable file
5
.emacs.snippets/css-mode/marb
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: margin-bottom: ...
|
||||
# key: marb
|
||||
# --
|
||||
margin-bottom: $1;
|
||||
5
.emacs.snippets/css-mode/marl
Executable file
5
.emacs.snippets/css-mode/marl
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: margin-left: ...
|
||||
# key: marl
|
||||
# --
|
||||
margin-left: $1;
|
||||
5
.emacs.snippets/css-mode/marr
Executable file
5
.emacs.snippets/css-mode/marr
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: margin-right: ...
|
||||
# key: marr
|
||||
# --
|
||||
margin-right: $1;
|
||||
5
.emacs.snippets/css-mode/mart
Executable file
5
.emacs.snippets/css-mode/mart
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: margin-top: ...
|
||||
# key: mart
|
||||
# --
|
||||
margin-top: $1;
|
||||
5
.emacs.snippets/css-mode/pad
Executable file
5
.emacs.snippets/css-mode/pad
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: padding: ...
|
||||
# key: pad
|
||||
# --
|
||||
padding: $1;
|
||||
5
.emacs.snippets/css-mode/padb
Executable file
5
.emacs.snippets/css-mode/padb
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: padding-bottom: ...
|
||||
# key: padb
|
||||
# --
|
||||
padding-bottom: $1;
|
||||
5
.emacs.snippets/css-mode/padl
Executable file
5
.emacs.snippets/css-mode/padl
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: padding-left: ...
|
||||
# key: padl
|
||||
# --
|
||||
padding-left: $1;
|
||||
5
.emacs.snippets/css-mode/padr
Executable file
5
.emacs.snippets/css-mode/padr
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: padding-right: ...
|
||||
# key: padr
|
||||
# --
|
||||
padding-right: $1;
|
||||
5
.emacs.snippets/css-mode/padt
Executable file
5
.emacs.snippets/css-mode/padt
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: padding-top: ...
|
||||
# key: padt
|
||||
# --
|
||||
padding-top: $1;
|
||||
1
.emacs.snippets/d-mode/.yas-parents
Executable file
1
.emacs.snippets/d-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-like-syntax
|
||||
5
.emacs.snippets/d-mode/imm
Executable file
5
.emacs.snippets/d-mode/imm
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: immutable
|
||||
# key: imm
|
||||
# --
|
||||
immutable $0
|
||||
5
.emacs.snippets/d-mode/import
Executable file
5
.emacs.snippets/d-mode/import
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: import <...>;
|
||||
# key: imp
|
||||
# --
|
||||
import $0;
|
||||
42
.emacs.snippets/emacs-lisp-mode/emacs-lisp-module
Executable file
42
.emacs.snippets/emacs-lisp-mode/emacs-lisp-module
Executable file
@@ -0,0 +1,42 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: emacs lisp module skeleton
|
||||
# key: emacs-lisp-module
|
||||
# --
|
||||
;;; ${1:`(file-name-nondirectory (buffer-file-name))`} --- ${2:Package Description} -*- lexical-binding: t -*-
|
||||
|
||||
;; Copyright (C) `(format-time-string "%Y" (current-time))` ${3:Alexey Kutepov <reximkut@gmail.com>}
|
||||
|
||||
;; Author: $3
|
||||
;; URL: $4
|
||||
|
||||
;; Permission is hereby granted, free of charge, to any person
|
||||
;; obtaining a copy of this software and associated documentation
|
||||
;; files (the "Software"), to deal in the Software without
|
||||
;; restriction, including without limitation the rights to use, copy,
|
||||
;; modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
;; of the Software, and to permit persons to whom the Software is
|
||||
;; furnished to do so, subject to the following conditions:
|
||||
|
||||
;; The above copyright notice and this permission notice shall be
|
||||
;; included in all copies or substantial portions of the Software.
|
||||
|
||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
||||
;; BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
;; ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
;; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
;; SOFTWARE.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; $5
|
||||
|
||||
;;; Code:
|
||||
|
||||
$0
|
||||
|
||||
(provide '${6:`(file-name-sans-extension (file-name-nondirectory (buffer-file-name)))`})
|
||||
|
||||
;;; $1 ends here
|
||||
41
.emacs.snippets/emacs-lisp-mode/pacmacs-module
Executable file
41
.emacs.snippets/emacs-lisp-mode/pacmacs-module
Executable file
@@ -0,0 +1,41 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: pacmacs module skeleton
|
||||
# key: pacmacs-module
|
||||
# --
|
||||
;;; ${1:`(file-name-nondirectory (buffer-file-name))`} --- Pacman for Emacs -*- lexical-binding: t -*-
|
||||
|
||||
;; Copyright (C) `(format-time-string "%Y" (current-time))` Codingteam
|
||||
|
||||
;; Author: Codingteam <codingteam@conference.jabber.ru>
|
||||
;; Maintainer: Alexey Kutepov <reximkut@gmail.com>
|
||||
;; URL: http://github.com/rexim/pacmacs.el
|
||||
|
||||
;; Permission is hereby granted, free of charge, to any person
|
||||
;; obtaining a copy of this software and associated documentation
|
||||
;; files (the "Software"), to deal in the Software without
|
||||
;; restriction, including without limitation the rights to use, copy,
|
||||
;; modify, merge, publish, distribute, sublicense, and/or sell copies
|
||||
;; of the Software, and to permit persons to whom the Software is
|
||||
;; furnished to do so, subject to the following conditions:
|
||||
|
||||
;; The above copyright notice and this permission notice shall be
|
||||
;; included in all copies or substantial portions of the Software.
|
||||
|
||||
;; THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
;; EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
;; MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
;; NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
|
||||
;; BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
|
||||
;; ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
|
||||
;; CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
;; SOFTWARE.
|
||||
|
||||
;;; Commentary:
|
||||
|
||||
;; $2
|
||||
|
||||
;;; Code:
|
||||
|
||||
$0
|
||||
|
||||
;;; $1 ends here
|
||||
1
.emacs.snippets/fan-mode/.yas-parents
Executable file
1
.emacs.snippets/fan-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-like-syntax
|
||||
24
.emacs.snippets/fundamental-mode/mit
Executable file
24
.emacs.snippets/fundamental-mode/mit
Executable file
@@ -0,0 +1,24 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: mit
|
||||
# key: mit
|
||||
# --
|
||||
Copyright `(format-time-string "%Y")` Alexey Kutepov <reximkut@gmail.com>
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining
|
||||
a copy of this software and associated documentation files (the
|
||||
"Software"), to deal in the Software without restriction, including
|
||||
without limitation the rights to use, copy, modify, merge, publish,
|
||||
distribute, sublicense, and/or sell copies of the Software, and to
|
||||
permit persons to whom the Software is furnished to do so, subject to
|
||||
the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be
|
||||
included in all copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
||||
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
||||
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
||||
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
||||
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
||||
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
||||
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
||||
8
.emacs.snippets/fundamental-mode/sb
Executable file
8
.emacs.snippets/fundamental-mode/sb
Executable file
@@ -0,0 +1,8 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: sb
|
||||
# key: sb
|
||||
# expand-env: ((yas-indent-line 'fixed))
|
||||
# --
|
||||
${1:$(make-string (+ 2 (string-width yas-text)) ? )}SMOL
|
||||
${1:$(make-string (+ 2 (string-width yas-text)) ? )}BREK
|
||||
($1 minutes)
|
||||
7
.emacs.snippets/html-mode/tag
Executable file
7
.emacs.snippets/html-mode/tag
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: tag
|
||||
# key: tag
|
||||
# --
|
||||
<$1>
|
||||
$0
|
||||
</$1>
|
||||
5
.emacs.snippets/html-mode/tagi
Executable file
5
.emacs.snippets/html-mode/tagi
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: tagi
|
||||
# key: tagi
|
||||
# --
|
||||
<$1>$0</$1>
|
||||
1
.emacs.snippets/java-mode/.yas-parents
Executable file
1
.emacs.snippets/java-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-like-syntax
|
||||
5
.emacs.snippets/java-mode/ps
Executable file
5
.emacs.snippets/java-mode/ps
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: public static
|
||||
# key: ps
|
||||
# --
|
||||
public static
|
||||
5
.emacs.snippets/java-mode/psv
Executable file
5
.emacs.snippets/java-mode/psv
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: public static void
|
||||
# key: psv
|
||||
# --
|
||||
public static void
|
||||
1
.emacs.snippets/js-mode/.yas-parents
Executable file
1
.emacs.snippets/js-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-like-syntax
|
||||
7
.emacs.snippets/js-mode/item
Executable file
7
.emacs.snippets/js-mode/item
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: item
|
||||
# key: item
|
||||
# --
|
||||
${1:Item} {
|
||||
$0
|
||||
} // $1
|
||||
7
.emacs.snippets/latex-mode/begin
Executable file
7
.emacs.snippets/latex-mode/begin
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: \begin{environment} ... \end{environment}
|
||||
# key: begin
|
||||
# --
|
||||
\begin{${1:environment}}
|
||||
$0
|
||||
\end{$1}
|
||||
10
.emacs.snippets/makefile-gmake-mode/make
Executable file
10
.emacs.snippets/makefile-gmake-mode/make
Executable file
@@ -0,0 +1,10 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: make
|
||||
# key: make
|
||||
# expand-env: ((yas-indent-line 'fixed))
|
||||
# --
|
||||
CFLAGS=-Wall -Wextra -std=c11 -pedantic
|
||||
LIBS=
|
||||
|
||||
$1: $2
|
||||
$(CC) $(CFLAGS) -o $1 $2 $(LIBS)
|
||||
9
.emacs.snippets/markdown-mode/todo
Executable file
9
.emacs.snippets/markdown-mode/todo
Executable file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: todo
|
||||
# key: todo
|
||||
# type: command
|
||||
# binding: C-x t
|
||||
# --
|
||||
(if (region-active-p)
|
||||
(yas-expand-snippet "<!--TODO:-->`yas-selected-text`<!--$0-->")
|
||||
(yas-expand-snippet "<!--TODO: $0 -->"))
|
||||
1
.emacs.snippets/nix-mode/.yas-parents
Executable file
1
.emacs.snippets/nix-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-like-syntax
|
||||
7
.emacs.snippets/nxml-mode/body
Executable file
7
.emacs.snippets/nxml-mode/body
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <body>...</body>
|
||||
# key: body
|
||||
# --
|
||||
<body>
|
||||
$0
|
||||
</body>
|
||||
7
.emacs.snippets/nxml-mode/div
Executable file
7
.emacs.snippets/nxml-mode/div
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <div class="...">\n...\n</div>
|
||||
# key: div
|
||||
# --
|
||||
<div class="$1">
|
||||
$0
|
||||
</div>
|
||||
7
.emacs.snippets/nxml-mode/head
Executable file
7
.emacs.snippets/nxml-mode/head
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <head>...</head>
|
||||
# key: head
|
||||
# --
|
||||
<head>
|
||||
$0
|
||||
</head>
|
||||
7
.emacs.snippets/nxml-mode/html
Executable file
7
.emacs.snippets/nxml-mode/html
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <html xmlns="...">...</html>
|
||||
# key: html
|
||||
# --
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${1:en}" lang="${2:en}">
|
||||
$0
|
||||
</html>
|
||||
5
.emacs.snippets/nxml-mode/link
Executable file
5
.emacs.snippets/nxml-mode/link
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <link stylesheet="..." />
|
||||
# key: link
|
||||
# --
|
||||
<link rel="${1:stylesheet}" href="${2:url}" type="${3:text/css}" media="${4:screen}" />
|
||||
5
.emacs.snippets/nxml-mode/meta
Executable file
5
.emacs.snippets/nxml-mode/meta
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <meta http-equiv="..." content="..." />
|
||||
# key: meta
|
||||
# --
|
||||
<meta http-equiv="${1:Content-Type}" content="${2:text/html; charset=UTF-8}" />
|
||||
17
.emacs.snippets/nxml-mode/pom
Executable file
17
.emacs.snippets/nxml-mode/pom
Executable file
@@ -0,0 +1,17 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <project>...</project>
|
||||
# key: pom
|
||||
# --
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0
|
||||
http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>${1:me.rexim}</groupId>
|
||||
<artifactId>${2:artifactId}</artifactId>
|
||||
<version>${3:0.0.1-SNAPSHOT}</version>
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
</properties>
|
||||
</project>
|
||||
5
.emacs.snippets/nxml-mode/script
Executable file
5
.emacs.snippets/nxml-mode/script
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <script type="text/javascript" src="..."></title>
|
||||
# key: script
|
||||
# --
|
||||
<script type="text/javascript" src="$1"></script>
|
||||
5
.emacs.snippets/nxml-mode/span
Executable file
5
.emacs.snippets/nxml-mode/span
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <span class="...">\n...\n</span>
|
||||
# key: span
|
||||
# --
|
||||
<span class="$1">$0</span>
|
||||
7
.emacs.snippets/nxml-mode/tag
Executable file
7
.emacs.snippets/nxml-mode/tag
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <tag>\n...\n</tag>
|
||||
# key: tag
|
||||
# --
|
||||
<${1:tag}$2>
|
||||
$0
|
||||
</$1>
|
||||
5
.emacs.snippets/nxml-mode/tag.1
Executable file
5
.emacs.snippets/nxml-mode/tag.1
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <tag>...</tag>
|
||||
# key: tag
|
||||
# --
|
||||
<${1:tag}$2>$0</$1>
|
||||
5
.emacs.snippets/nxml-mode/tag.2
Executable file
5
.emacs.snippets/nxml-mode/tag.2
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <tag />
|
||||
# key: tag
|
||||
# --
|
||||
<${1:tag} $2/>$0
|
||||
5
.emacs.snippets/nxml-mode/title
Executable file
5
.emacs.snippets/nxml-mode/title
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <title>...</title>
|
||||
# key: title
|
||||
# --
|
||||
<title>$0</title>
|
||||
5
.emacs.snippets/nxml-mode/xml
Executable file
5
.emacs.snippets/nxml-mode/xml
Executable file
@@ -0,0 +1,5 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: <?xml version="1.0" encoding="UTF-8" standalone="no" ?>
|
||||
# key: xml
|
||||
# --
|
||||
<?xml version="1.0" encoding="UTF-8" ?>
|
||||
43
.emacs.snippets/org-mode/pomo
Executable file
43
.emacs.snippets/org-mode/pomo
Executable file
@@ -0,0 +1,43 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: pomo table
|
||||
# key: pomo
|
||||
# --
|
||||
|-------+-------+----------|
|
||||
| start | type | duration |
|
||||
|-------+-------+----------|
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 20m |
|
||||
|-------+-------+----------|
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 20m |
|
||||
|-------+-------+----------|
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 20m |
|
||||
|-------+-------+----------|
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 10m |
|
||||
| | work | 20m |
|
||||
| | break | 20m |
|
||||
|-------+-------+----------|
|
||||
1
.emacs.snippets/perl-mode/.yas-parents
Executable file
1
.emacs.snippets/perl-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-like-syntax
|
||||
7
.emacs.snippets/perl-mode/fore
Executable file
7
.emacs.snippets/perl-mode/fore
Executable file
@@ -0,0 +1,7 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: foreach (...) { ... }
|
||||
# key: fore
|
||||
# --
|
||||
foreach ($1) {
|
||||
$0
|
||||
}
|
||||
9
.emacs.snippets/porth-mode/main
Executable file
9
.emacs.snippets/porth-mode/main
Executable file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: main
|
||||
# key: main
|
||||
# --
|
||||
include "std.porth"
|
||||
|
||||
proc main in
|
||||
$0
|
||||
end
|
||||
6
.emacs.snippets/porth-mode/ras
Executable file
6
.emacs.snippets/porth-mode/ras
Executable file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: ras
|
||||
# key: ras
|
||||
# --
|
||||
here eputs ": Assertion Failed: $0" eputs
|
||||
1 exit
|
||||
6
.emacs.snippets/porth-mode/todo
Executable file
6
.emacs.snippets/porth-mode/todo
Executable file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: todo
|
||||
# key: todo
|
||||
# --
|
||||
here eputs ": TODO: $0" eputs
|
||||
1 exit
|
||||
6
.emacs.snippets/porth-mode/unreach
Executable file
6
.emacs.snippets/porth-mode/unreach
Executable file
@@ -0,0 +1,6 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: unreach
|
||||
# key: unreach
|
||||
# --
|
||||
here eputs ": unreachable: $0" eputs
|
||||
69 exit
|
||||
1
.emacs.snippets/rust-mode/.yas-parents
Executable file
1
.emacs.snippets/rust-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-like-syntax
|
||||
1
.emacs.snippets/scala-mode/.yas-parents
Executable file
1
.emacs.snippets/scala-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-like-syntax
|
||||
9
.emacs.snippets/snippet-mode/snip
Executable file
9
.emacs.snippets/snippet-mode/snip
Executable file
@@ -0,0 +1,9 @@
|
||||
# -*- mode: snippet -*-
|
||||
# name: snippet snippet
|
||||
# key: snip
|
||||
# --
|
||||
# -*- mode: snippet -*-
|
||||
# name: $1
|
||||
# key: ${2:`(file-name-nondirectory (file-name-sans-extension (buffer-file-name)))`}
|
||||
# --
|
||||
$0
|
||||
1
.emacs.snippets/typescript-mode/.yas-parents
Executable file
1
.emacs.snippets/typescript-mode/.yas-parents
Executable file
@@ -0,0 +1 @@
|
||||
c-like-syntax
|
||||
Reference in New Issue
Block a user