Added auctex and yasnippets

This commit is contained in:
TuDatTr
2017-12-21 17:29:29 +01:00
parent 2c6b54e8cc
commit 6cf4b23ee2
1717 changed files with 140403 additions and 9 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,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: 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,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>