From 98d68b6cd919c9be779cbf7539a4c0d71041cf75 Mon Sep 17 00:00:00 2001 From: Joseph Ferano Date: Tue, 1 Oct 2024 18:58:29 +0700 Subject: [PATCH] Include snippets --- .config/emacs/init.org | 1 - .config/emacs/snippets/csharp-mode/Debug.Break() (Unity) | 6 ++++++ .config/emacs/snippets/csharp-mode/Debug.Log() (Unity) | 6 ++++++ .config/emacs/snippets/csharp-mode/Unity Awake | 9 +++++++++ .config/emacs/snippets/csharp-mode/Unity OnDestroy | 9 +++++++++ .config/emacs/snippets/csharp-mode/Unity SerializeField | 4 ++++ .config/emacs/snippets/csharp-mode/Unity Update | 9 +++++++++ .config/emacs/snippets/csharp-mode/csharp foreach | 8 ++++++++ .config/emacs/snippets/csharp-mode/for (int i) | 9 +++++++++ .config/emacs/snippets/csharp-mode/for (int j) | 9 +++++++++ .gitignore | 1 + 11 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 .config/emacs/snippets/csharp-mode/Debug.Break() (Unity) create mode 100644 .config/emacs/snippets/csharp-mode/Debug.Log() (Unity) create mode 100644 .config/emacs/snippets/csharp-mode/Unity Awake create mode 100644 .config/emacs/snippets/csharp-mode/Unity OnDestroy create mode 100644 .config/emacs/snippets/csharp-mode/Unity SerializeField create mode 100644 .config/emacs/snippets/csharp-mode/Unity Update create mode 100644 .config/emacs/snippets/csharp-mode/csharp foreach create mode 100644 .config/emacs/snippets/csharp-mode/for (int i) create mode 100644 .config/emacs/snippets/csharp-mode/for (int j) diff --git a/.config/emacs/init.org b/.config/emacs/init.org index 8f7638a..ff2318c 100644 --- a/.config/emacs/init.org +++ b/.config/emacs/init.org @@ -2239,7 +2239,6 @@ These help speed eglot up apparently [[https://www.reddit.com/r/emacs/comments/1 (setq lsp-ui-doc-position 'at-point) (setq lsp-ui-doc-show-with-mouse nil) - (require 'flycheck) (setq flycheck-check-syntax-automatically '()) (setq flycheck-keymap-prefix (kbd "C-c e")) diff --git a/.config/emacs/snippets/csharp-mode/Debug.Break() (Unity) b/.config/emacs/snippets/csharp-mode/Debug.Break() (Unity) new file mode 100644 index 0000000..9382e76 --- /dev/null +++ b/.config/emacs/snippets/csharp-mode/Debug.Break() (Unity) @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Debug.Break() (Unity) +# key: db +# -- + +Debug.Break();$0 \ No newline at end of file diff --git a/.config/emacs/snippets/csharp-mode/Debug.Log() (Unity) b/.config/emacs/snippets/csharp-mode/Debug.Log() (Unity) new file mode 100644 index 0000000..90abc78 --- /dev/null +++ b/.config/emacs/snippets/csharp-mode/Debug.Log() (Unity) @@ -0,0 +1,6 @@ +# -*- mode: snippet -*- +# name: Debug.Log() (Unity) +# key: dl +# -- + +Debug.Log($0); \ No newline at end of file diff --git a/.config/emacs/snippets/csharp-mode/Unity Awake b/.config/emacs/snippets/csharp-mode/Unity Awake new file mode 100644 index 0000000..d005ebc --- /dev/null +++ b/.config/emacs/snippets/csharp-mode/Unity Awake @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Unity Awake +# key: awa +# -- + +void Awake() +{ + $0 +} \ No newline at end of file diff --git a/.config/emacs/snippets/csharp-mode/Unity OnDestroy b/.config/emacs/snippets/csharp-mode/Unity OnDestroy new file mode 100644 index 0000000..c998e5d --- /dev/null +++ b/.config/emacs/snippets/csharp-mode/Unity OnDestroy @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Unity OnDestroy +# key: des +# -- + +void OnDestroy() +{ + $0 +} \ No newline at end of file diff --git a/.config/emacs/snippets/csharp-mode/Unity SerializeField b/.config/emacs/snippets/csharp-mode/Unity SerializeField new file mode 100644 index 0000000..b9286d5 --- /dev/null +++ b/.config/emacs/snippets/csharp-mode/Unity SerializeField @@ -0,0 +1,4 @@ +# key: sf +# name: Unity SerializeField +# -- +[SerializeField] private $0 \ No newline at end of file diff --git a/.config/emacs/snippets/csharp-mode/Unity Update b/.config/emacs/snippets/csharp-mode/Unity Update new file mode 100644 index 0000000..a81afd7 --- /dev/null +++ b/.config/emacs/snippets/csharp-mode/Unity Update @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: Unity Update +# key: upd +# -- + +void Update() +{ + $0 +} \ No newline at end of file diff --git a/.config/emacs/snippets/csharp-mode/csharp foreach b/.config/emacs/snippets/csharp-mode/csharp foreach new file mode 100644 index 0000000..d9f7ff6 --- /dev/null +++ b/.config/emacs/snippets/csharp-mode/csharp foreach @@ -0,0 +1,8 @@ +# -*- mode: snippet -*- +# name: csharp foreach +# key: fore +# -- +foreach (var ${1:item} in ${2:list}) +{ + $0 +} \ No newline at end of file diff --git a/.config/emacs/snippets/csharp-mode/for (int i) b/.config/emacs/snippets/csharp-mode/for (int i) new file mode 100644 index 0000000..59e241c --- /dev/null +++ b/.config/emacs/snippets/csharp-mode/for (int i) @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: for (int i) +# key: fori +# -- + +for (int i = 0; i < $1; i++) +{ + $0 +} diff --git a/.config/emacs/snippets/csharp-mode/for (int j) b/.config/emacs/snippets/csharp-mode/for (int j) new file mode 100644 index 0000000..78181bf --- /dev/null +++ b/.config/emacs/snippets/csharp-mode/for (int j) @@ -0,0 +1,9 @@ +# -*- mode: snippet -*- +# name: for (int j) +# key: forj +# -- + +for (int j = 0; i < $1; j++) +{ + $0 +} \ No newline at end of file diff --git a/.gitignore b/.gitignore index fbaa5f5..6d90577 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,7 @@ .config/emacs/* !.config/emacs/init.org !.config/emacs/elisp/ +!.config/emacs/snippets !.config/emacs/elisp/welcome.el !.config/emacs/Emacs@256.png /.config/nvim/plugin/