mirror of
https://github.com/js0ny/dotfiles.git
synced 2025-12-21 08:43:00 +00:00
chezmoi: reorganise repo
This commit is contained in:
parent
b391e03c87
commit
67a78879db
278 changed files with 102 additions and 182 deletions
28
home/dot_config/zed/snippets/executable_c.json
Normal file
28
home/dot_config/zed/snippets/executable_c.json
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
{
|
||||
"main": {
|
||||
"prefix": "main",
|
||||
"body": [
|
||||
"int main() {",
|
||||
" $1",
|
||||
" return 0;",
|
||||
"}"
|
||||
],
|
||||
"description": "Main function with no arguments"
|
||||
},
|
||||
"mainn": {
|
||||
"prefix": "mainn",
|
||||
"body": [
|
||||
"",
|
||||
"int main(int argc, char *argv[]) {",
|
||||
" $1",
|
||||
" return 0;",
|
||||
"}"
|
||||
],
|
||||
"description": "Main function with arguments"
|
||||
},
|
||||
"once": {
|
||||
"prefix": "#once",
|
||||
"body": ["#ifndef $1", "#define $1", "", "$2", "", "#endif"],
|
||||
"description": "Include guard"
|
||||
}
|
||||
}
|
||||
27
home/dot_config/zed/snippets/org.json
Normal file
27
home/dot_config/zed/snippets/org.json
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
"src": {
|
||||
"prefix": "src",
|
||||
"body": ["#+begin_src $1", "$0", "#+end_src"],
|
||||
"description": "Source code block"
|
||||
},
|
||||
"ex": {
|
||||
"prefix": "ex",
|
||||
"body": ["#+begin_example", "$0", "#+end_example"],
|
||||
"description": "Example block"
|
||||
},
|
||||
"begin": {
|
||||
"prefix": "begin",
|
||||
"body": ["#+begin_$1", "$0", "#+end_$1"],
|
||||
"description": "Begin block"
|
||||
},
|
||||
"【【": {
|
||||
"prefix": "[[",
|
||||
"body": ["[[$0]]"],
|
||||
"description": "Chinese link"
|
||||
},
|
||||
"elisp": {
|
||||
"prefix": "elisp",
|
||||
"body": ["#+begin_src emacs-lisp :tangle yes", "$0", "#+end_src"],
|
||||
"description": "Emacs Lisp code block"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue