Creating new Hugo article from within Emacs

This is a short function I crafted recently to create a new Hugo article from within the Emacs. Until now, each time I wanted to create a new article, I had to spawn eshell and run hugo new command from there. In essence, it is really a dumb function, and has no notion of hugo commands, templates, structure, or anything for that matter. It assumes my own post structure and just inserts hard-coded template into appropriate place for my site....

October 26, 2023 · 2 min · Ivan Tomica

Emacs Centric News Reading

In a sea of information, staying up-to-date with the latest news, blogs and updates can be an endless task. After some time of surfing the web you gather a list of your preferred sources and you want to know when they publish something new. I don’t really stay up-to-date much with generic news. From time to time, I might open a local news portal for a few seconds just to be reminded of how much nonsense is being pushed down everyone’s throat and how consumeristic our society has become....

August 27, 2023 · 4 min · Ivan Tomica

Detect System Theme in Emacs

Since I’m using MacOS again for the work, and obviously, I still use Emacs, I wanted to have a functionality which would detect which system theme is being used and load the correct one during Emacs startup. Previously, I have hacked together just a simple script which depended on GTK theme. Basically, If command returns string Adwaita, load light theme, if it returns Adwaita-dark, load dark theme. Later I learned that this might not be the good approach at all, even more so since GNOME developed concept of having Dark and Light theme....

August 28, 2022 · 2 min · Ivan Tomica

On Emacs usage

I’ve noticed that for the past few months I have been using Emacs more and more, and I have tweaked it almost perfectly to my liking. Naturally, when I need to explain to someone why Emacs is so great, it is hard for me to note few of the things that make it. At this point things are so well integrated and fit my workflow that I’m having hard time of promoting single package :-)...

January 13, 2021 · 1 min · Ivan Tomica

Sending mail using multiple Mu4e contexts in Emacs

My current email client of choice is Mu4e within Emacs. There’s plethora of reasons why I have settled for it instead of some other client and why in the end, I transitioned to it from mutt, but that’s perhaps a topic for some future article. Setting up Mu4e in the beginning was pretty simple as I had only one email account and used asynchronous email function to queue emails and then flush them all in one go....

December 24, 2020 · 3 min · Ivan Tomica

Replacing OfflineIMAP with MBSync (isync)

For most of my private email needs I prefer to use Mu4e within Emacs. It is a module of Emacs which basically searches through Mu index file. Naturally, to be able to index something, you first need to fetch it. In this case “it” are email messages from the server, or, my mailbox if you wish. For this particular purpose OfflineIMAP utility has served me well over the time, and to be honest, my needs are quite simple:...

March 31, 2020 · 2 min · Ivan Tomica

mu4e on Fedora

Since recently I’m an Emacs user, and as such I like to have my Emacs everywhere. Including on the laptop which runs Fedora 30 at this moment. One of the most crucial things for me is email, which is being handled by mu/mu4e. And since I was unable to google things properly I was going through hassle of downloading and building mu from the source code, which then provided me with mu4e....

July 7, 2019 · 1 min · Ivan Tomica