Now that I write Python code for a living, I write a lot of functions, classes, and modules. What I still tend to forget, and also find tedious, is adding docstrings. Unlike many developers, writing documentation is not an enemy of mine, but it usually comes to my mind when …
read moreOther articles
-
-
Get account data programatically from id-manager
I recently started using id-manager. It is a nice little package that can store your passwords, encrypting them with GPG. My original reason was to store my GitHub access token for github-notifier, but it soon turned out, it’s not that easy.
id-manager is a nice package when it comes …
read more -
Edit file as another user in Emacs
I have recently found this article by Bozhidar Batsov on opening the current file as root. I barely use tramp for sudo access, but when I do, I almost never use root as the target user. So I decided to fix it for my needs.
read more(defun open-this-file-as-other-user (user) "Edit current …
-
How I started with Emacs
Sacha Chua has a nice Emacs chat intro article back from 2013. I write this post half because she asks there about my (OK, anyone’s) first Emacs moments, and half because I plan to do it for months now.
I wanted to start using Emacs 6(ish) years ago …
read more -
Emacs: Implement a GObject’s virtual function
I have recently started creating a GLib implementation of the Matrix.org API. For that, I have created a GObject interface, MatrixAPI, which has as many virtual functions as API calls (which is a lot, and expanding). This way I ended up with the following scenario.
In matrix-api.h I …
read more -
Rounding numbers to N decimals in Emacs
I have recently faced a problem, where I had a bunch of SVG files with a large amount of fraction numbers in the path definitions. These images were displayed in small size, so this amount of precision was irrelevant, and these numbers took almost half of my SVG images’ size …
read more -
NyanMacs