add lisp packages

This commit is contained in:
2020-12-05 21:29:49 +01:00
parent 85e20365ae
commit a6e2395755
7272 changed files with 1363243 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
cc-mode
c-lang-common

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: assert
# key: ass
# --
#include <assert.h>
$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: compile
# key: compile
# --
// -*- compile-command: "${1:gcc -Wall -o ${2:dest} ${3:file}}" -*-

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: define
# key: d
# --
#define $0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: fgets
# key: fgets
# --
fgets(${1:variable}, ${2:size}, ${3:stdin});

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: fprintf
# key: fprintf
# --
fprintf(${1:stdout}, "${2:format string}", ${3:variable});

View File

@@ -0,0 +1,6 @@
# -*- mode: snippet -*-
# name: malloc
# key: malloc
# --
malloc(sizeof($1)${2: * ${3:3}});
$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: packed
# key: packed
# --
__attribute__((__packed__))$0

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: printf
# key: pr
# --
printf("${1:format string}"${2: ,a0,a1});

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: scanf
# key: scanf
# --
scanf("${1:format string}", ${2:&variable});

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: stdio
# key: io
# --
#include <stdio.h>

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: stdlib
# key: std
# --
#include <stdlib.h>

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: string
# key: str
# --
#include <string.h>

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: strstr
# key: strstr
# --
strstr(${1:string}, ${2:string});

View File

@@ -0,0 +1,7 @@
# -*- mode: snippet -*-
# name: union
# key: union
# --
typedef union {
$0
} ${1:name};

View File

@@ -0,0 +1,5 @@
# -*- mode: snippet -*-
# name: unistd
# key: uni
# --
#include <unistd.h>