Configure YASnippet

This commit is contained in:
2023-07-14 15:52:48 +01:00
parent 1211a0404d
commit dec4206e70
3 changed files with 48 additions and 0 deletions

View File

@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: header-guard
# binding: C-c C-k C-l
# key: hdr
# --
#ifndef ${1:`(upcase (file-name-nondirectory (file-name-sans-extension (buffer-file-name))))`_H}
#define $1
$0
#endif

View File

@@ -0,0 +1,11 @@
# -*- mode: snippet -*-
# name: spdx-license-comment
# binding: C-c C-k C-l
# key: spdx
# --
/*
* SPDX-License-Identifier: $1
* Copyright (c) Camden Dixie O'Brien
*/
$0