Emacs: desktop-save-mode without the automatic restore
Auto save the Emacs session but don't auto restore, and keep last few sessions available to restore
Srijan Choudhary's Articles and Notes Feed
Auto save the Emacs session but don't auto restore, and keep last few sessions available to restore
Noticed that the comment form was not working here since my last upgrade of Kirby and the komments plugin. Fixed it now.
#TIL that #Emacs also has a Global Mark Ring: the global mark ring records a sequence of buffers that you have been in, and, for each buffer, a place where you set the mark For programming buffers / projects, I've been using the xref stack to go back/forward when jumping around. But the global mark ring is super useful as a general purpose tracker of my context jumps. By default, C-x …
Reposted: Better Models: Worse Tools by Armin Ronacher's Thoughts and Writings About an aggravating tool-calling regression in newer Claude models. I've also noticed newer models being worse in other harnesses and using other tools. Also mentioned by Simon here: https://simonwillison.net/2026/Jul/4/better-models-worse-tools/
Knoppix nostalgia Oh man, fond memories. I remember being very interested in programming in middle/high school, but all the environments in our school computer lab had windows (this was in India), and I think at that time (maybe 2001-2003) I didn't even know there were other operating systems. Our school was participating in something called International Cyber Olympiad, and of course I gave the …
TIL about describe-personal-keybindings from https://mbork.pl/2026-05-09_describe-personal-keybindings and https://irreal.org/blog/?p=13799 Definitely useful to keep track of things in a central place.
A small #Emacs #OrgMode quality-of-life tweak. I often need to replace an org heading's title while preserving the original text in the body. The problem is that pressing enter on a heading inserts a line above the properties drawer, which breaks things. Here's a function that moves the heading title into the body (below the properties drawer and metadata), and binds it to S-RET: (defun …
Faced a failing disk in my raidz2 ZFS pool today. Recovery was pretty simple: Asked the service provider to replace the disk Find new disk ID etc using: lsblk -o NAME,SIZE,MODEL,SERIAL,LABEL,FSTYPE ls -ltrh /dev/disk/by-id/ata-* Resilver using: sudo zpool replace lake <old_disk_id> <new_disk_id> Watch status using: watch zpool status -v Re-silvering is still ongoing, but hopefully …
A small elisp snippet that I found useful. I often switch between terminals and #Emacs, and they have slightly different behaviors for C-w. This makes it behave the same in Emacs as it does in bash/zsh/fish etc - deletes the last word. It retains the kill-region behavior if a region is actually selected. (defun kill-region-or-backward-word () "If the region is active and non-empty, call …
tramp-hlo looks interesting. Anything that can make tramp on #Emacs snappier is a good thing in my books.
gcloud_ssh A simple script that finds a google cloud compute VM by IP address across all projects of an organization and runs gcloud ssh to it. #!/bin/bash GCLOUD_SSH_FLAGS="--internal-ip" # Get organization ID dynamically get_org_id() { gcloud organizations list --format="value(name)" --limit=1 2>/dev/null | sed 's|organizations/||' } search_and_connect() { local ip_address=$1 echo "Searching …
Quick note for me to generate #Emacs TAGS file for an #Erlang project: find {src,apps,_build/default,$(dirname $(which erl))/../lib} -name "*.[he]rl" | xargs realpath --relative-to="$(pwd)" | etags.emacs -o TAGS - The relative path ensures that this works over tramp as well.
I didn't know that Aloe Vera can have flowers!
Read Jeremy's post on quickly switching the default browser. I had a shell script to do this as well. Doing it from Emacs makes more sense because I can have a completion UI. So, here's my modified version for Linux: (defun sj/default-browser (&optional name) "Set the default browser based on the given NAME." (interactive (list (completing-read "Browser: " (split-string …
I had been facing an issue in #Emacs on my work Mac system: C-S-<tab> was somehow being translated to C-<tab>. I tried to look into key-translation-map to figure out the issue, but could not find anything. Finally, turned out that I had bound C-<tab> to tab-line-switch-to-next-tab and C-<iso-lefttab> to tab-line-switch-to-prev-tab, but the actual C-S-<tab> was …
Event based orgzly sync using tasker to prevent conflicts
I saw a few blog posts with people sharing their default apps for the year, and I wanted to share mine as well. Here's the list: 📨 Mail Service: Fastmail 📮 Mail Client: Fastmail web, mu4e (Emacs), FairEmail (Android) 📝 Notes: Markdown and Org files in denote (Emacs), Markor (Android) ✅ To-Do: GTD using Orgmode (Emacs), Orgzly Revived (Android) 📆 Calendar: Google Calendar 🙍🏻♂️ Contacts:…
Learn how to seamlessly capture Slack messages into your Emacs Orgmode (GTD) inbox using a custom browser userscript.
Read an interesting set of posts today: https://lethain.com/extract-the-kernel/ and https://lethain.com/executive-translation/ . The basic concept is: ... executives are generally directionally correct but specifically wrong, and it’s your job to understand the overarching direction without getting distracted by the narrow errors in their idea. This resonates well with my experience. I have been …
Tried using X11 on #Linux the last few days due to some issues with Zoom screensharing in Wayland with the latest pipewire, and I already miss #Wayland. Issues I faced with X11: Smooth scrolling broken Apps work noticeably slower Screen tearing This bug in Emacs GTK build: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=67654 (To be fair, this is a GTK-specific issue, not X11 specific) I will go …
I have been using #karousel on #KDE for several weeks, and yesterday shifted to #PaperWM on #GNOME. Took some time to configure things like I wanted, but it's much smoother than karousel (and fancier). Overall, I like the scrolling tiling pane paradigm. I realized I've been manually doing something like this using workspaces with 1-2 windows per workspace with two keybindings - one to change …
#Emacs #TIL : I learned about save-interprogram-paste-before-kill - which saves the existing system clipboard text into the kill ring before replacing it. This ensures that Emacs kill operations do not irrevocably overwrite existing clipboard text. A common workflow for me is to copy some text from a different application and paste it inside Emacs. But, if I want to first delete a word or region …
Tabs in Emacs 30.1 behave similarly to other common desktop applications
Something precious stolen by magic. #WitchHatAtelier #Manga #Magic Syndicated to: https://bsky.app/profile/srijan4.bsky.social/post/3l36vuzxpbp24
My small #emacs #orgmode #gtd customization of the day: org-edna is a plugin that can be used to setup auto triggers (and blockers) when completing a task. org-gtd uses it to auto-forward the next TODO item in a project to NEXT when a task in the project is marked as DONE. The #orgedna trigger it uses is: relatives(forward-no-wrap todo-only 1 no-sort) todo!(NEXT). This works okay for me, but also…
Note to followers of my site using RSS feeds - I've removed the microblog replies/likes etc kind of posts from the "All Posts" feed. I feel social interaction posts like that should not be part of the default feed of my website. There is always the notes feed that includes all microblog posts including reactions / interactions. A list of feeds available can be found here: https://srijan.ch/feed/ …
I have been reading books mostly on Kindle for the last 10 years or so. Visited a nearby library today. I didn't realize I was missing the experience of browsing shelves, stumbling upon unexpected gems, getting lost in the recommendations section, and choosing something physical to checkout. Syndicated to: https://bsky.app/profile/did:plc:6koasqt256b6jwfrn74vwbg5/post/3l2br4drpjc2r
Webmention rocks tests Redoing these tests with indieConnector v2.1.0 Discovery Tests 1-22: PASS Discovery Test 23: FAIL Update Test 1: PASS Update Test 2: FAIL Delete Test 1: Not Tested Receiver Tests 1-2: PASS #IndieWeb #Webmention
Using sysrq on my laptop - documenting mostly for myself. My laptop has started freezing sometimes, not sure why. Usually, I can just force power off using the power button and start it again, but it has happened twice that I had to recover the system by booting via a USB drive, chrooting, and recovering the damaged files using fsck or pacman magic. The linux kernel has: a ‘magical’ key combo you…
Using todoist as a cloud inbox for GTD in Emacs orgmode for better integration with services like Slack and Google Assistant
Found Samuel's nice post on capturing data for org via email. This is very close to what I was looking for to be able to do GTD capture on-the-go either from phone apps like Braintoss or from any email app. One addition I would like to make is handling attachments in the email by downloading them and attaching to the org entry. This would be useful for voice notes from Braintoss - it does …
How to test your ansible playbooks against multiple target OSes and versions using Vagrant
@rogerlipscombe@hachyderm.io has a nice post on using git with multiple identities. His recommended way (using includeIf to include different config files for different parent folders) also makes sense to me the most.
My new #IndieWeb enabled website is now live! You can follow my microblog posts or blog articles by entering @srijan.ch@srijan.ch in your Fediverse app search bar or reply and interact with any post using #Webmention or your Mastodon/Fediverse app. Site Features: Indieauth Webmentions Federation with the fediverse (via Bridgy Fed) Structured author, posts, and feeds using microformats Microsub …
New #Coffee #BlueTokai This new packaging from BlueTokai looks nice. And the coffee tastes amazing. Chocolatey flavour with very little bitterness.
#Patterns
Test webmention + fed.brid.gy: Two naked tags walk into a bar. The bartender exclaims, "Hey, you can't come in here without microformats, this is a classy joint!"
Added an RSS feed for notes
I've been working on an Indieweb-enabled site redesign using Kirby CMS + TailwindCSS.
Exploring ways to make two systemd services using a shared resource work with each other
Enabling a graphical password prompt for disk decryption on ArchLinux
Encrypt an unencrypted root partition on an Arch Linux system
Download files from google cloud storage using temporary credentials or time-limited access URLs
Slack bot using Google Cloud Functions to post a roundup of recently created channels
How I automated setting up custom routes and DNS for FortiClient SSL VPN on Windows 10
How I made a custom rebar3 plugin to generate HTML reports for dialyzer warnings
Run multiple emacs daemons for different purposes and set different themes/config based on daemon name
Using xref magic to query compiled beam files and find cross-application function calls in Erlang
My experience with advanced monitoring for PostgreSQL database using Telegraf, InfluxDB, and Grafana, using a custom postgresql plugin for Telegraf.
Run Jenkins inside docker, but also use docker containers to run jobs on that Jenkins