about summary refs log tree commit diff stats
path: root/src/paper-airplane-day-and-two-fire-alarms.ht
diff options
context:
space:
mode:
Diffstat (limited to 'src/paper-airplane-day-and-two-fire-alarms.ht')
-rw-r--r--src/paper-airplane-day-and-two-fire-alarms.ht49
1 files changed, 49 insertions, 0 deletions
diff --git a/src/paper-airplane-day-and-two-fire-alarms.ht b/src/paper-airplane-day-and-two-fire-alarms.ht new file mode 100644 index 0000000..58720ed --- /dev/null +++ b/src/paper-airplane-day-and-two-fire-alarms.ht
@@ -0,0 +1,49 @@
1;@@title: Paper airplane day and two fire alarms@@
2;@@date: 2022-05-26@@
3
4Apparently, today is National Paper Airplane Day, so we had a little paper
5airplane contest at work. It was quite fun, though my go-to airplane style
6didn't win over the YouTube-d and other "professionally"-done airplanes.
7
8We also had a potluck with my department and another, and in preparation the
9ovens set off two fire alarms. The first was totally charred french bread and
10the second was some drippings that were left on foil in the oven for who knows
11how long. Quite annoying, but the potluck turned out quite well!
12
13I've also sold my desk as we prepare for our move, and I'm looking at others.
14Thinking an Ikea number, maybe.
15
16I'm back on <code>nyan-mode</code> in my mode-line. Oh, I need to remember the
17<code>actually-selected-window</code> package, which I wrote I belive
18<em>for</em> <code>nyan-mode</code>! I'll do that when I'm done here.
19
20I also wrote a little function to make it easier to post on this blog. Here it
21is:
22
23```
24(defun blog-post (title &optional date)
25 "Make a new blog post, with TITLE on DATE."
26 (interactive (list (read-string "Title: ")
27 (format-time-string "%F")))
28 (let ((blog-directory (expand-file-name "~/src/hat-trick/src/"))
29 (metadata-format ";@@%s: %s@@\n")
30 (slug (string-trim (downcase (replace-regexp-in-string "[^[:alnum:]]"
31 "-" title))
32 "-" "-")))
33 (find-file (expand-file-name (concat slug ".ht") blog-directory))
34 (insert (format metadata-format "title" title))
35 (when date
36 (insert (format metadata-format "date" date)))
37 (insert "\n")))
38```
39
40I think the next thing I should do is make a major-mode ... or maybe I should
41just use <code>web-mode</code>....
42
43And of course, I need to update the syntax of these .ht files. They're
44<em>okay</em>, but I think I could improve them in a few ways. Not that I've
45figured out what those ways are, lol.
46
47<hr>
48
49Wow, this was a long one! That's good, I spose :)