Supports additional snippets
- C programming - HTML - Nix
This commit is contained in:
parent
e6c5065b5b
commit
8b09557f38
5 changed files with 58 additions and 0 deletions
5
configs/shared/emacs/.emacs.d/snippets/c-mode/stdio
Normal file
5
configs/shared/emacs/.emacs.d/snippets/c-mode/stdio
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: <stdio.h>
|
||||||
|
# key: sio
|
||||||
|
# --
|
||||||
|
#include <stdio.h>
|
5
configs/shared/emacs/.emacs.d/snippets/c-mode/stdlib
Normal file
5
configs/shared/emacs/.emacs.d/snippets/c-mode/stdlib
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: <stdlib.h>
|
||||||
|
# key: slb
|
||||||
|
# --
|
||||||
|
#include <stdlib.h>
|
|
@ -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>
|
12
configs/shared/emacs/.emacs.d/snippets/nix-mode/shell-nix
Normal file
12
configs/shared/emacs/.emacs.d/snippets/nix-mode/shell-nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
# -*- mode: snippet -*-
|
||||||
|
# name: shell.nix boilerplate
|
||||||
|
# key: import
|
||||||
|
# --
|
||||||
|
with import <nixpkgs> {};
|
||||||
|
|
||||||
|
stdenv.mkDerivation {
|
||||||
|
name = "$1";
|
||||||
|
buildInputs = [
|
||||||
|
$2
|
||||||
|
];
|
||||||
|
}
|
|
@ -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>
|
Loading…
Reference in a new issue