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). Then do C-u C-x = (what-cursor-position) and you’ll get a buffer telling you more than you wanted to know about the text you’re on top of. For us, we just want to know the faces at hand; give them a search and then you’ll know just which to change in customize-face.

Fine-grained per-method middleware use with Reitit

Fact: I have middleware performing authentication (in this case, my CAS authentication middleware) Need: This middleware should apply to client-facing SPA-rendered views, which are requested via GET. Constraint: This middleware does NOT apply to non-get routes (which are headless so the authentication must be handled differently) Constraint: There exist headless GET routes, too, which should not be CAS authenticated Constraint: Individual routes may have a CAS-authenticated GET response, as well as non-CAS POST, PATCH, and DELETE responses Reitit allowed me to specify middleware on a delightfully granular level to solve this.

Deploying to Clojars with the new tokens

With a recent, well-deserved funding round to the Clojars repository project, the password you log in to the site with is no longer valid as the password with which you publish deployments. See https://github.com/clojars/clojars-web/wiki/Deploy-Tokens and https://clojars.org/tokens . The annoyingly unanswered question is how I adjust my setup to USE the token. So, here it is with Leiningen. Project.clj I have the following in my project.clj, which is the same as I had before switching from my web password to the token:

Deploying to Clojars with the new tokens :clojure: clojars: deployment: token: leinengen: credentials:

With a recent, well-deserved funding round to the Clojars respository project, the password you log in to the site with is no longer valid as the password with which you publish deployments. See https://github.com/clojars/clojars-web/wiki/Deploy-Tokens and https://clojars.org/tokens . The annoyingly unsanswered question is how I adjust my setup to USE the token. So, here it is with Leinengen. Project.clj I have the following in my project.clj, which is the same as I had before switching from my web password to the token:

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.

Critique my org elisp

Someday I’ll get around to writing about code quality in elisp, but for now I don’t know it well enough to know idioms and avoid code-smell. Orgmode has a massive code-base and the documentation has a hard-time keeping up, so I asked, How is the following code, aimed at getting the list of header tags and making them into a comma-separated string? org-get-tags didn’t work because I needed to support when the cursor is in the text of an entry, not just on the headline.

Emacs Tip: Registers

The Simple Genius of Emacs Registers It’s been in emacs since the beginning, and is not had in many other editors, yet many people don’t know about it. Registers. The documentation talks about many types, most of which I haven’t tried yet. The three I use the most, however, are: Text in register. Suppose I want a chunk of text but am doing something that will pollute my kill ring, so I can’t just yank (paste) every time.

Julian Date

I have tried several date formats; the only thing for certain is that the USA-variability of month/day/year, day/month/year, etc is a really annoying. Today I discovered Julian dates: forget about the month altogether! https://en.wikipedia.org/wiki/Calendar_date#Day_and_year_only This makes great sense, especially for calculating when my packages are set to arrive! Now if only I could figure out my birthday in it… date "+%Y%j" 2020185

Orgmode LaTeX collaboration

https://www.reddit.com/r/emacs/comments/hkjyj2/orgmode_latex_collaboration/ I’ve used LaTeX for years as my document production system, so that I need not bother with word processors. I write letters, papers, homework, dissertations, and presentations in it. For the past couple years, though, I’ve been shifting all these to org-mode, which I find much simpler for managing my materials and exporting to LaTeX (as well as anything else). However, now I am back to working on academic papers collaboratively.

Keyboard-driven Editing in 2020

Why Keyboard Driven Editing in this age of the mouse? First of all, the mouse is easy – you don’t need to learn anything to point, drag, and click. And for many problem spaces this is ideal: I browse the web with a mouse (usually because my work as a web application engineer requires it), and I wouldn’t dream of attempting keyboard-driven image editing such as with Gimp or InkScape.