emacs

Fix invalid submodule error when using straight.el

My ordinary workflow was to start emacs with a load into my orgmode agenda, which locates me in my .emacs git-project. Upon inspecting my agenda I’ll go to some project from my todo list using helm-projectile. However, after switching to Staight.el (which does its heavy lifting with git) this workflow was broken. The result is that, when I try to use projectile from somewhere that Git includes Straight stuff, I get this failure about submodules:

Tip: shortcut for kill-this-buffer

I have added the following shortcut, possible since exwm frees up my s- key: (exwm-input-set-key (kbd "s-<backspace>") 'kill-this-buffer) And, for when I am already in an emacs buffer, this added to my personal key map: (define-key map (kbd "s-<backspace>") 'kill-this-buffer) In any case, making a single-chord shortcut for kill-this-buffer has highlighted how often I use the command, and made work that much faster. Highly recommended!

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

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 .

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.

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).

Missing font for insert-character utf8 characters?

Question When I do insert-char (C-x 8 RET) I get lots of “no character” font displays, as when I seek characters matching “smil”. Can I fix this without rebuilding emacs? Answer Solved by following https://github.com/rolandwalker/unicode-fonts. Just put the .ttf files in my ~/.fonts dir, and where the repo links were broken I was able to download the font from google fonts. Didn’t even have to restart my emacs. Thread https://www.