June 2nd 2026 - Interesting Finds
Desire is real poverty
…the pauper is not the person who has too little but the one who desires more.
Reference
Seneca - Letter 2 From Seneca to Lucilius
Evil mode execute last recorded macro
If we press Q we can run the last recorded macro. This calls (evil-execute-last-recorded-macro).
Emacs undo in region
We can highlight a region, v or V in Evil mode, and then call (undo) to undo changes in that specific region. This works even if we've made changes in other regions after.
(undo) is bound to C-/ by default.
Emacs draw on the screen with your mouse
You can activate (artist-mode) to draw on the screen with your mouse.
By default this will draw dots on the screen. If you hold down shift you can draw lines and dashes.
Emacs quickly hide levels of indentation
We can use (set-selective-display levels) to view lines that are less than the value of LEVELS. This is useful when exploring code or configuration files. We can run (set-selective-display 5) to view code like this:
Emacs replicate the current buffer in html with css styling
We can use (htmlfontify-buffer) to create an html/css version of the current buffer keeping all of its color and styling.
Git how to push after changing a commit message
We need to use:
git push --force-with-lease origin