chezmoi: bash, ipython, sioyek, zed

This commit is contained in:
js0ny 2025-09-27 12:51:25 +01:00
parent 295f94ddb9
commit 81da252906
32 changed files with 51 additions and 644 deletions

View 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"
}
}

View 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"
}
}