feat: initial commit

This commit is contained in:
2023-10-11 21:51:24 +02:00
commit 8709837ef1
128 changed files with 2464 additions and 0 deletions

View File

@@ -0,0 +1 @@
c-mode

7
.emacs.snippets/c++-mode/catch Executable file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: catch (...) { ... }
# key: catch
# --
catch ($1) {
$0
}

7
.emacs.snippets/c++-mode/fore Executable file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: for (...: ...) { ... }
# key: fore
# --
for ($1: $2) {
$0
}

7
.emacs.snippets/c++-mode/ns Executable file
View 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
View 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

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: qdebug
# key: qdebug
# --
qDebug() << "----------------------------------------";
qDebug() << "$0";
qDebug() << "----------------------------------------";

7
.emacs.snippets/c++-mode/try Executable file
View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: try { ... }
# key: try
# --
try {
$0
}

5
.emacs.snippets/c++-mode/uns Executable file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: using namespace std;
# key: uns
# --
using namespace std;

5
.emacs.snippets/c++-mode/vec Executable file
View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: std::vector<T>
# key: vec
# --
std::vector<$1> $2;$0