Filtering major modes in Emacs buffers

Having adopted as my main term, I wanted a first-class way to open and switch between vterm buffers. With , one can view the major mode of…

Scala support in Doom Emacs with metals-emacs

Language support for Scala is provided for by metals-emacs (Ensime seems to have been officially deprecated a few months ago). Installing…

Splitting Chocolates, or, Minimum Partition Difference

A take-home question from some company’s recruitment process (not me applying). It’s similar to another blog post that I had in mind to…

Linear Time Bridge Detection

Fleury’s algorithm is an algorithm for finding an Eulerian path/cycle in an undirected graph. It relies on being able to detect bridges in…

Installing Emacs from source (macOS 10.14)

Information about installing Emacs from source on macOS seems to be surprisingly sparse, so putting it all here together for easy reference…

Minimum Palindrome Partitions

A cut is defined as a slice of a string that partitions a string into two. Given a string, return the minimum number of cuts required to…