journal
all all entries rss SoML excited dreams runes YRUU ultimate KTRU skate sleepy nihongo
Rob is 20,136 days old today.
prev day next day printable version

Entries this day: emacs-macro-for-new-journal-entries entrance-for-jennie my-desk-will-not-attend-my-funeral

emacs macro for new journal entries

20:11 Wednesday 29 March 2017 JST

Since switching my journal to use Hugo, I wrote a little macro to help me start new entries. I type C-c j to create a new journal entry. It prompts me for a title, a tag, year, month, and date, filling in the last three with today's defaults.

It creates a file, then inserts a YAML block at the top of the file, writes the current date a couple lines below that and I'm ready to type.

There's one change that I have often wanted, but don't want enough to spend the time to figure it out. How to let me type multiple tags.

Right now, this entry has YAML like this:

title: Emacs macro for new journal entries
author: Rob Nugen
date: 2017-03-29T20:11:37+09:00

tags: [ "emacs" ]

I tried just comma-separating the tags, but (iirc,) they need to be hyphen-prefixed and newline-separated. I think something like this will work:

title: Emacs macro for new journal entries
tags:
  - emacs
  • meta
  • journal
  • author: Rob Nugen
    date: 2017-03-29T20:11:37+09:00
    

To create this as a user, I'd like to be prompted with Tag: repeatedly until I enter an empty tag.

I am not asking my non-emacs-using reader per se, but just articulating this so I can clarify for someone who can do it easily.

permalink

entrance for jennie

20:05 Wednesday 29 March 2017 JST

I just bought three styrofoam blocks for Jennie. She is currently able to leap from our balcony onto the sunroom roof below, then climb down the nearby tree.

She can barely jump back up, and doing so requires her to balance on the edge of the gutter. The dusty slightly sloped plastic sunroom roof does not give her enough grip to leap from it.

So, my plan is to make a set of stairs for her to more easily ascend and more quietly descend.

There's a slight risk that other cats will be like "hey meow, I can do that," and try to come inside, but it's worth the risk. I think there's a greater risk of Jennie jumping down one day and cracking the plastic roof of the sunroof which would certainly be more expensive to repair than 3500 yen for these blocks.

permalink

my desk will not attend my funeral

10:54 Wednesday 29 March 2017 JST

Too busy working to read this, but I bet it says I am too busy working https://medium.com/personal-growth/your-desk-will-not-attend-your-funeral-779515a81dd3

permalink
prev day next day