Include snippets

This commit is contained in:
Joseph Ferano 2024-10-01 18:58:29 +07:00
parent 2bab49a2e4
commit 98d68b6cd9
11 changed files with 70 additions and 1 deletions

View File

@ -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"))

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: Debug.Break() (Unity)
# key: db
# --
Debug.Break();$0

View File

@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: Debug.Log() (Unity)
# key: dl
# --
Debug.Log($0);

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: Unity Awake
# key: awa
# --
void Awake()
{
$0
}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: Unity OnDestroy
# key: des
# --
void OnDestroy()
{
$0
}

View File

@ -0,0 +1,4 @@
# key: sf
# name: Unity SerializeField
# --
[SerializeField] private $0

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: Unity Update
# key: upd
# --
void Update()
{
$0
}

View File

@ -0,0 +1,8 @@
# -*- mode: snippet -*-
# name: csharp foreach
# key: fore
# --
foreach (var ${1:item} in ${2:list})
{
$0
}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: for (int i)
# key: fori
# --
for (int i = 0; i < $1; i++)
{
$0
}

View File

@ -0,0 +1,9 @@
# -*- mode: snippet -*-
# name: for (int j)
# key: forj
# --
for (int j = 0; i < $1; j++)
{
$0
}

1
.gitignore vendored
View File

@ -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/