Skip to main content

Baty.net

A blog about everything by Jack Baty 👋

Tag: Emacs

Editing Hugo’s Markdown directly (not using ox-hugo)

I have been wondering if the benefits of using ox-hugo just so I can write posts using Org-mode format is worth the extra layer of abstraction. I prefer Org-mode to Markdown, but Markdown is fine. In fact, Markdown-mode makes editing Markdown in Emacs quite pleasant. Ox-hugo is a great package, but increasingly seemed like a clever but unnecessary abstraction. One of its best features is that it makes creating new posts super easy. I never liked using the Hugo CLI, so ox-hugo solved that problem.

Saturday, June 10, 2023

Dammit I just lost an hour on Mastodon even though I’m supposed to be “off” social media. I have nothing to show for it, either. It’s insidious!


I lost my head for a second and thought maybe I’d do the whole “Emacs from scratch” thing again. This time, I tried the new beta branch of Crafted Emacs because I like their approach on the new version. But yeah, it’s beta and things broke and I’m not good enough to troubleshoot. Back to Doom for now.

A couple of Mu4e improvements

I usually prefer reading my email using Mu4e in Emacs, but the Vim (“Evil”) keybindings have been broken since upgrading to 1.10.x. (See this PR for background). This added so much friction that I went back to Mail.app and Notmuch. Recent changes in evil-collection have fixed the issue but weren’t available yet when updating Doom. The fix for now was to (unpin! evil-collection) in packages.el. Much better!

Another snag I’ve run into while using Mu4e was that sometimes I also use Apple’s Mail on macOS and iOS and any messages I delete there would only be flagged as “trashed” in Mu4e, so they would show up in the inbox, cluttering things considerably. The fix for this was to set Expunge Both in my .mbsyncrc file. Also much better! That one has been bugging me for a long time.

I can’t be trusted with powerful software

It’s happening again. My love of powerful, complex software has overrun my ability to avoid tinkering.

For example, I’ve spent several hours this week working on my Org-mode agenda display. Configuring org-super-agenda is tons of fun. It can make one’s Agenda absolutely sing and dance, which is not ideal for me because I’ve spent way too much time trying to teach it to sing and dance. I could have finished all of the tasks on my todo list in the time I’ve spent getting them to display just right.

Printing daily.baty.net

At the end of each month, I convert my Org-journal entries into a nice PDF, print it, and put it into a binder.

It occurred to me that my daily.baty.net website content is just a bunch of markdown files that could be treated the same as my org-journal files and perhaps printed as well.

I started by concatenating March’s entries into a single Markdown file, like so:

cat 2023-03*.md >> ~/Desktop/202303-MarchBlog.md

The resulting file wasn’t in great shape for printing, so I had to clean it up. At minimum, I needed to do the following:

Back to Org-roam (from Denote)

Update: I think Org-roam is the right answer for most people, but I could not resist the simplicity and lack of dependencies of Denote, so I am back in Denote as of June, 2023.

Using both Org-roam and Denote for my notes is not sustainable. I had to make a call one way or the other.

I went with Org-roam.

This is a bit disappointing because I prefer the philosophy of Denote. I like that Denote is agnostic about file types (I can mix and match Markdown and Org-mode files, for example). I like that it forces a consistent file naming scheme. I like that it doesn’t depend on Org-mode features or any other complex dependencies. I like that it doesn’t try to do too much, but is easily extensible. Plus, I’m not trying to build some sort of zettelkasten or anything, so simple is preferable.