diff options
author | Loek Le Blansch <l.leblansch@gmail.com> | 2020-06-21 22:05:17 +0200 |
---|---|---|
committer | Loek Le Blansch <l.leblansch@gmail.com> | 2020-06-21 22:05:17 +0200 |
commit | 47a4416df21412a9184a9b5045233260c1cb80bb (patch) | |
tree | bd5463ec7698868ab61d84a1ae0af1ebd4984ce8 /.config/coc/ultisnips |
dots v2
Diffstat (limited to '.config/coc/ultisnips')
-rw-r--r-- | .config/coc/ultisnips/css.snippets | 5 | ||||
-rw-r--r-- | .config/coc/ultisnips/html.snippets | 16 | ||||
-rw-r--r-- | .config/coc/ultisnips/tex.snippets | 34 |
3 files changed, 55 insertions, 0 deletions
diff --git a/.config/coc/ultisnips/css.snippets b/.config/coc/ultisnips/css.snippets new file mode 100644 index 0000000..fc67c2e --- /dev/null +++ b/.config/coc/ultisnips/css.snippets @@ -0,0 +1,5 @@ +snippet resetFontWeight "reset font-weight for mobile browsers" +h1, h2, h3, h4, h5, h6 { + font-weight: normal !important; +} +endsnippet diff --git a/.config/coc/ultisnips/html.snippets b/.config/coc/ultisnips/html.snippets new file mode 100644 index 0000000..1730a7a --- /dev/null +++ b/.config/coc/ultisnips/html.snippets @@ -0,0 +1,16 @@ +snippet newhtml "HTML Starting Point" +<!DOCTYPE html> +<html> +<head> + <meta charset='utf-8'> + <meta http-equiv='X-UA-Compatible' content='IE=edge'> + <title>${1:Page Title}</title> + <meta name='viewport' content='width=device-width, initial-scale=1'> + <link rel='stylesheet' type='text/css' media='screen' href='${2:style.css}'> + <script src='${3:script.js}'></script> +</head> +<body> + ${0} +</body> +</html> +endsnippet diff --git a/.config/coc/ultisnips/tex.snippets b/.config/coc/ultisnips/tex.snippets new file mode 100644 index 0000000..056f562 --- /dev/null +++ b/.config/coc/ultisnips/tex.snippets @@ -0,0 +1,34 @@ +snippet newdocument "Starting point for a new LaTeX document" +\\documentclass[12pt, a4paper, hidelinks]{article} +\\setlength{\\marginparwidth}{2.54cm} + +% Packages +\\usepackage{fullpage} + +% Skip +\\bigskipamount=.7cm +\\medskipamount=.4cm +\\parindent=.3cm + +% Document +\\begin{document} + ${0} +\\end{document} +endsnippet + +snippet nonumberedchapters "Removes chapter numbers" +% Unnumber chapter headings +\\makeatletter +\\def\\@seccntformat#1{ + \\expandafter\\ifx\\csname c@#1\\endcsname\\c@section\\else + \\csname the#1\\endcsname\\quad + \\fi} +\\makeatother +endsnippet + +snippet beginend "begin/end snippet" +\\begin\{${1}\} +${0} +\\end\{${1}\} +endsnippet + |