80f0db7bdfd0

More
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 20 Oct 2023 14:03:50 -0400
parents e7338d0c9900
children a9f1df02501f
branches/tags (none)
files bin/cv bin/hl bin/mklatex bin/mklatex-bib bin/tv fish/config.fish lisprc md-to-html/Makefile md-to-html/foo.html md-to-html/foo.markdown md-to-html/template.html stumpwmrc vim/vimrc

Changes

--- a/bin/cv	Tue Oct 03 13:52:23 2023 -0400
+++ b/bin/cv	Fri Oct 20 14:03:50 2023 -0400
@@ -2,4 +2,4 @@
 
 set -euo pipefail
 
-column -s $'\t' -t
+column -s, -t "$@"
--- a/bin/hl	Tue Oct 03 13:52:23 2023 -0400
+++ b/bin/hl	Fri Oct 20 14:03:50 2023 -0400
@@ -1,3 +1,3 @@
 #!/usr/bin/env bash
 
-less -R
+less -R "$@"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mklatex	Fri Oct 20 14:03:50 2023 -0400
@@ -0,0 +1,7 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+NAME="$1"
+
+pdflatex "$NAME".tex
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/mklatex-bib	Fri Oct 20 14:03:50 2023 -0400
@@ -0,0 +1,10 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+NAME="$1"
+
+pdflatex "$NAME".tex
+biber "$NAME"
+pdflatex "$NAME".tex
+pdflatex "$NAME".tex
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/bin/tv	Fri Oct 20 14:03:50 2023 -0400
@@ -0,0 +1,5 @@
+#!/usr/bin/env bash
+
+set -euo pipefail
+
+column -s $'\t' -t "$@"
--- a/fish/config.fish	Tue Oct 03 13:52:23 2023 -0400
+++ b/fish/config.fish	Fri Oct 20 14:03:50 2023 -0400
@@ -63,6 +63,7 @@
 complete -c ew -w which
 complete -c h -w hg
 complete -c g -w git
+complete -c hl -w less
 
 # }}}
 # Bind Keys {{{
--- a/lisprc	Tue Oct 03 13:52:23 2023 -0400
+++ b/lisprc	Fri Oct 20 14:03:50 2023 -0400
@@ -22,6 +22,9 @@
      (defglobal ,var nil)
      (setf ,var ,val)))
 
+(defun :vlime ()
+  (load "~/src/dotfiles/vim/bundle/vlime/lisp/start-vlime.lisp"))
+
 
 ;;;; Scratch Marker -----------------------------------------------------------
 (defun sharp-semicolon-reader (stream sub-char numarg)
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/md-to-html/Makefile	Fri Oct 20 14:03:50 2023 -0400
@@ -0,0 +1,6 @@
+%.html: %.markdown template.html Makefile
+	pandoc \
+	  --template template.html \
+	  --table-of-contents \
+	  -f markdown -t html \
+	  "$<" > "$@"
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/md-to-html/foo.html	Fri Oct 20 14:03:50 2023 -0400
@@ -0,0 +1,57 @@
+<!doctype html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <title>Some Test</title>
+    <style type="text/css">
+        body {
+            margin:40px auto;
+            max-width: 800px;
+            line-height:1.5;
+            font-size:16px;
+            color: #222;
+            padding:0 10px;
+            font-family: serif;
+        }
+        h1,h2,h3 {
+            line-height:1.2
+        }
+        code {
+            font-size: 14px;
+            background-color: #eee;
+            border: 1px solid #ccc;
+            padding: 1px;
+        }
+        pre code {
+            border: none;
+            padding: none;
+        }
+        pre {
+            font-size: 14px;
+            background-color: #eee;
+            border: 1px solid #ccc;
+            padding: 1px;
+            overflow-x: auto;
+            margin: 24px 20px 24px 0px;
+            padding: 4px 10px;
+        }
+        a {
+            color: #e50053;
+        }
+
+        h1 {
+            text-align: center;
+        }
+        </style>
+  </head>
+  <body>
+      <h1>Some Test</h1>
+<ul>
+<li><a href="#example">Example</a></li>
+</ul>
+<h2 id="example">Example</h2>
+<p>This is a test.</p>
+<pre><code>Some code.</code></pre>
+<p>Done testing.</p>
+  </body>
+</html>
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/md-to-html/foo.markdown	Fri Oct 20 14:03:50 2023 -0400
@@ -0,0 +1,11 @@
+---
+title: Some Test
+---
+
+## Example
+
+This is a test.
+
+    Some code.
+
+Done testing.
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/md-to-html/template.html	Fri Oct 20 14:03:50 2023 -0400
@@ -0,0 +1,58 @@
+<!doctype html>
+<html lang="en">
+  <head>
+    <meta charset="utf-8">
+    <title>$title$</title>
+    <style type="text/css">
+        body {
+            margin:40px auto;
+            max-width: 800px;
+            line-height:1.5;
+            font-size:16px;
+            color: #222;
+            padding:0 10px;
+            font-family: serif;
+        }
+        h1,h2,h3 {
+            line-height:1.2
+        }
+        code {
+            font-size: 14px;
+            background-color: #eee;
+            border: 1px solid #ccc;
+            padding: 1px 4px;
+        }
+        pre code {
+            border: 0;
+            padding: 0;
+        }
+        pre {
+            font-size: 14px;
+            background-color: #eee;
+            border: 1px solid #ccc;
+            padding: 1px;
+            overflow-x: auto;
+            margin: 24px 20px 24px 0px;
+            padding: 4px 10px;
+        }
+        a {
+            color: #e50053;
+        }
+
+        h1 {
+            text-align: center;
+        }
+        #table-of-contents ul {
+            padding-left: 0;
+        }
+        #table-of-contents li {
+            list-style-type: none;
+        }
+        </style>
+  </head>
+  <body>
+      <h1>$title$</h1>
+<div id="table-of-contents">$toc$</div>
+$body$
+  </body>
+</html>
--- a/stumpwmrc	Tue Oct 03 13:52:23 2023 -0400
+++ b/stumpwmrc	Fri Oct 20 14:03:50 2023 -0400
@@ -973,4 +973,4 @@
 
 (group-number (current-group))
 
-
+(message "~D" *terminal-font-size*)
--- a/vim/vimrc	Tue Oct 03 13:52:23 2023 -0400
+++ b/vim/vimrc	Fri Oct 20 14:03:50 2023 -0400
@@ -997,6 +997,8 @@
 
 augroup ft_latex
     au!
+
+    au Filetype tex inoremap <buffer> <c-b> \begin{}<left>
 augroup END
 
 " }}}