Posts

stop freezes: disable global undo-tree

global-undo-tree-mode Dramatic freezes on routine “undo” I was experiencing freezes of sometimes up to 30 seconds about 3/4 of the the time when I used my muscle memory to hit undo (C-/), which I do as part of my regular “kill-line undo” combo (C-k C-/). Something must have changed recently because I started to have show-stopping freezes of my emacs thread when I tried a routine “undo.” I finally managed to squeeze a toggle-debug-on-quit and, with a bit of patience, got a C-g in during the freeze.

tip: recover-session-finish

recover-session-finish Sometimes emacs freezes, sometimes it crashes, but let’s recover As an exwm user, everything is in emacs. I hate to admit it, but sometimes things crash or freeze. Sometimes I need to go to my shell and pkill emacs to get back to a running session. When this happens, I am helpfully reminded to recover all those unsaved buffers, especially those related to my orgmode-agenda. I then go hunting through my error log to find all the buffers that need a recover-file.

Getting docked triple-monitor setups on exwm at start of work

The problem: docking in to multiple monitors without restart doesn’t use them In both my offices I have a triple-screen setup (my laptop + two externals). However, I change setups regularly; on the commute, it is only my laptop. Then, on either end of that commute, it’s triple two more external monitors (but they are a different dimension of externals in either location). The problem is that the monitors are usually not recognized at plug-in time after a daily change of locations, though my other docked accessories (mostly my keyboard) are recognized.

exwm triple monitor winum mode-line window numbers need to update better

The problem An posted on reddit.1 I have my window numbers in my modelines of every window so that I can easily navigate to them with my exwm three-monitor setup. About 90% of the time they are accurate, but they get out of sync sometimes when big window operations (or closing a window) occur. As soon as I do something to invoke a mini-buffer (any C-x command), they get updated correctly, but sometimes when I try to work quickly I find they don’t match up.

bufler syntax for a browser subgroup

Edits [2023-12-23 Sat] correction: “Buffler” is actually “Bufler” [2023-12-22 Fri] added updated groups section, and linked to my Firefox usage post. Added comments sections. Discussion Discussion can be had on this post at Reddit: https://www.reddit.com/r/emacs/comments/18omuu7/using_bufler_and_exwm_to_group_my_browser_windows/?utm_source=share&utm_medium=web2x&context=3 Mastodon: https://qoto.org/@worldsendless/111625703559060442 Github issue text This is associated with a Github issue.1 Note that this is with exwm, so Firefox buffers are first-class buffer citizens2. I used to have a single Firefox tab which contained my various social tabs with their particular settings.

Emacs message message-mark-inserted-region

Cut Here From the bygone era preceding Markdown and Stack Overflow, emacs’ message mode developed a marker for code areas within an email. With message-mark-inserted-region, by default in a message with a selection C-c M-m, you get something like this: --8<---------------cut here---------------start------------->8--- Secure Connection Failed An error occurred during a connection to example.com. Peer’s Certificate has been revoked. Error code: SEC_ERROR_REVOKED_CERTIFICATE The page you are trying to view cannot be shown because the authenticity of the received data could not be verified.

cross-posting in Zulip (Dec. 2023)

Posted and commentable on Mastodon at https://qoto.org/@worldsendless/111534702167903838 Resharing, retweeting, crossposting with Zulip Sometimes in Zulip1 I want to share something with several groups at once. In Reddit this is known as a “crosspost”. In Twitter it was “resharing” (though with a different concept of “groups”). Mastodon generally frowns upon the resharing concept altogether. But how about Zulip? I didn’t find a pure Zulip solution, but the same effect is possible with the “Quote and Reply” option, in which you can then choose a different stream and even edit the message if needed.

Working with shared git repository file permissons

Intro The recurring problem is that we run a shared development server in which there may be several people working on one project. I have each of them follow our Git protocal so that they make a branch named descriptively for each issue they are working on. Enters the problem: when one user switched to a branch, even later switching back to Master/Main, the next user would have permissions set blocking them because the git head or index was now owned by the previous user.

How to PGP decrypt Deltachat email with Gnus

Intro This message was originally fielded to Reddit1 I’m encrypting some emails on my gmail, sent by an auto-encrypting app. When I try to view them in Gnus, it asks if I want to decrypt the message and, when I affirm, I just see: Error! Result from decryption: Decryption failed Decryption failed This makes sense because I haven’t given it any keys and have never done this email decryption thing.

Transient for convenience with emms

A new version of Transient, so here’s my media helper EDIT 2023335b Added the image showing a better styled result, which captures semantic keys EDIT 2023335 Added the image showing the styled1 result, and added the code for tsa/jump-to-music This was posted to Reddit.2 With the recent announcement of a new version of Transient, I thought I would post the transient helper I wrote for the deeply customizable built-in-to-emacs emms music player, which I have been enjoying once I stopped thinking of it as Winamp or Spotify or whatever player I used previously.