Emacs Inspiration

Watching a great performance on the Tabernacle Choir Organ, I couldn’t help but feel some emacs inspiration. It’s even better with sound. https://youtu.be/i5Ei6CaZZnY?t=2495

Hugo HTML Omitted?

I found that my #Hugo was now omitting my html (such as embedded Youtube) with “html omitted” warnings showing up in my source. Fix with a few lines to your config.toml: [markup.goldmark.renderer] # allow html to be included unsafe = true Resources Answer was found on Hugo’s discourse here: https://discourse.gohugo.io/t/raw-html-getting-omitted-in-0-60-0/22032

Helm Duplicates history

M-x helm shows duplicates after upgrading to Emacs 27. Turns out the changed behavior is easily fixed by configuring history-delete-duplicates. Answer courtesy official issue .

Firefox customizations to remove tab bar and stream-line

Version at time of writing: Firefox 79.0 First, locate your profile by going to the firefox menu bar: Help -> “Troubleshooting Information” and find on the page “Profile Directory”. Navigate there, where you’ll be making/adding two files that allow you to customize behavior and appearance of Firefox. For reference, mine was here: ~/.mozilla/firefox/aabkj82t.default/ . Yours will have some other blob of random characters before “.default”. userChrome.css This file should definitely exist already.

Mysteriously growing into Emacs 27.1

I made the big upgrade to Emacs 27.1, giving myself a full day to work out the kinks. First off, it’s great; I like the early-init, I’m thrilled by the new in-box orgmode, and as things settle I love the new fonts and customizations. There is some strangeness on this journey, though (made worse by the fact that I am an exwm user, so emacs failures are system failures). Everything died.

Danger of diversions in Emacs

Emacs is so delightfully extensible it can easily be a Will-o’-the-wisp in a situations like this morning: Editing my “journal.2020.org” file as I do every day, I decided to finally remove the inconvenience of moving my fingers to the arrow keys to promote/demote structures. First I thought, “I’m just going to add this to my org-mode hydra so that I invoke it with C-c o and then hit [ or ] to change the heading level.

Orgmode System Notifications with Dunst

Most of emacs is miraculously self-documenting but I found a bare-spot: how to customize emacs notifications. In particular, being an exwm user the in-emacs mini-buffer with Dunst, I hope. There’s a dirth of documentation on the appointment variables/functions, although they are emacs-general. In particular, the key to making this whole thing work, appt-disp-window-function, has no help entry in my emacs, but this does it on my Linux: Solution Code (setq appt-display-format 'window) (setq appt-disp-window-function (function tsa/appt-disp-window)) (defun tsa/appt-disp-window (min-to-app new-time msg) (save-window-excursion (shell-command (concat "notify-send \"Orgmode: " msg "\"") nil nil))) Resources Relevant source: https://www.

A Lesson in the Beauty of Data - XML Parsing on the Front End: to CLJS or not to CLJS?

The task came that I need to parse some XML in a front-only app. In a sense, browsers are just big XML (≅ HTML) processors, so embracing the Clojure principle of being a hosted language, it seemed desirable to utilize the built-in power of my browser. This effort turned out to be a rabbit hole, though. Consider the following: A Native Approach (let [s "<title>Tech.ToryAnderson.com</title>" ;; 1 p (js/DOMParser.) ;; 2 doc (.

Colorize chmod strings in dired

How do I colorize the chmod privileges string? I am using dired+ and dired-hacks and have the ability to colorize the FILES based on the chmod string, but I want the string itself to have colors. I had this a little bit ago but somehow it went away. For example, each column in so that the eye can follow the colors down and easily see permission differences within a directory.

Customizing a Font-Face (dired directories)

I sensed I could improve how my directories appeared in dired, instead of just being bold-face. The question was, how to find which face to change to get the desired result? Digging through my customize-faces options was tedious and sometimes misses the tree for the forest unless you know which one you’re looking for. Locating the face at point Enter the beautiful self-documenting nature of Emacs. Put your cursor on the thing you want to change (remember, our whole philosophy emacs inherited from *Nix is that everything is text).