Supports additional snippets

- C programming
- HTML
- Nix
This commit is contained in:
William Carroll 2019-01-13 14:25:25 -05:00
parent e6c5065b5b
commit 8b09557f38
5 changed files with 58 additions and 0 deletions

View file

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

View file

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

View file

@ -0,0 +1,18 @@
# -*- mode: snippet -*-
# name: HTML index.html starter
# key: html
# --
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>$1</title>
<meta name="description" content="$2">
<meta name="author" content="William Carroll">
<link rel="stylesheet" href="index.css">
</head>
<body>
<script src="index.js"></script>
</body>
</html>

View file

@ -0,0 +1,12 @@
# -*- mode: snippet -*-
# name: shell.nix boilerplate
# key: import
# --
with import <nixpkgs> {};
stdenv.mkDerivation {
name = "$1";
buildInputs = [
$2
];
}

View file

@ -0,0 +1,18 @@
# -*- mode: snippet -*-
# name: HTML index.html starter
# key: html
# --
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>$1</title>
<meta name="description" content="$2">
<meta name="author" content="William Carroll">
<link rel="stylesheet" href="index.css">
</head>
<body>
<script src="index.js"></script>
</body>
</html>