RSSAmplifier

Blog

Emacs on macOS & (open-source) Software

Recent content in Emacs on macOS & (open-source) Software

macowners.clubRSS feed ↗25 posts

Latest posts

iMessage in Emacs

The why Regular readers know the pattern by now: if something can be done in Emacs, I will eventually do it in Emacs. Then why not have my iMessages living here as well?! So I made timu-imessage – a package to read and send iMessages without leaving Emacs. Well… I told Claude Code what I wanted. What does it do? A chat list with your entire message history, unread counts included.…

Preserving email dates when moving messages in Mu4e

The problem My email setup is the usual text based machinery I keep writing about: Mu4e with mu, isync (mbsync) and msmtp . It works beautifully – until one day it did not. When I moved emails around in Emacs – with mu4e-headers-mark-for-move , mu4e-headers-mark-for-refile or other command – the date of the moved email changed. A mail from last March would suddenly float to the top of the mailbox…

org-to-cal - Syncing Org Mode to macOS Calendar

Why? I am greatly fond of Org Mode. Everything happens in Org: tasks, notes, scheduling, you name it. But here is the thing. I still want my events to show up in macOS Calendar. Why? Well, Calendar.app has nice widgets. It syncs to my iPhone. It sends me notifications that actually work. And sometimes, I just want to glance at my day without firing up Emacs. Also: Why not? So the question becomes:…

Quick Capture Safari content into a Denote file

The why I have been looking to setup my personal knowledge management with Denote for a while. So far I have been using Org-roam , which I was quite happy with. However I have been seeing much more development and buzz around Denote. Not just with the core package but with more package from the community in the ecosystem. This week I finally managed to migrate from Org-roam to Denote. Well, not…

Mu4e - save attachments faster - an update

Edit 2026-02-01: Since some internal functions in Mu4e have changed I had to update the code for timu-mu4e-view-just-save-all-attachments as well. See this commit . My Issue In an older post I wrote down my solution for saving multiple attachements at once without a completion from Mu4e. The reason being that my the bulk of use cases are to save all attachments at once. In the rare cases I want to…

Custom Emacs functions No. 7 - Mu4e

EDIT - 2024-11-09: See the Edits section further down. Intro In the name of bringing the kitchen sink inside of Emacs, I manage my mails here as well. Mu4e is my choice of a mail client. As a quite opinionated fellow when it comes to my tools, I tend to change stuff a lot. This includes extending functions and commands that are delivered with Mu4e by default. Or even creating new ones. Barring…

A Personal Touch in my Org Agenda

Hello there! Today, I want to delve into my custom Org Agenda settings, shedding light on how my workflow compares to the default configurations. Why Customize Org Agenda? The default Org Agenda in Emacs is powerful, but with a few tweaks, it can be tailored to fit your personal workflow like a glove. Here’s a peek into my settings and why they make a difference. Cleaner and Clearer Layout…

Custom Emacs functions No. 6 - Elfeed

Intro I spend quite a lot of time of my day in Emacs, which includes reading articles, watching videos, listening to podcast and more from all sort of sources. These things get aggregated into Elfeed. I have got a particular way of navigating and consuming the content, which is why I had to use some custom functions. Some are stolen and bent to my liking, some are straight forward and some are…

Custom Emacs functions No. 5 - Navigation

Spring cleaning Let me start by saying this. Over the time I have accumulated some cruft (in this case function) that needed to be gone. Partly because some of the functionalities are built in and partly because my solutions were honestly nonsensical. Now I have cleaned up the modules at issue today and we can go on talking about the remaining functions that are still of use to me. The remaining…

Custom Emacs functions No. 4 - UI

The intro Every Emacs user that I know changes the hell out of the look and feel of their UI. I am no different here. The following is a list of the function, that use in my module timu-ui.el . Of course feel free to browse my .emacs.d for context ;). The functions timu-ui-with-face A very simple function to propertize a string with face property lists similar to set-face-attribute . ( defun…

Custom Emacs functions No. 3 - Dired

File Management There should now be a trend in this series for custom functions (see the last posts for baseline & modules functions). I like things to work my way. This is of course a reasonably easy thing to do using Emacs. With it being extensible and stuff… It is no different with file management using Dired. Dired custom functions timu-dired-up-directory Dired by defaults keeps the old…

AutoSwitch Mu4e context depending on mailbox

The reason There are a few things that depend on the context in Mu4e, some of which are mentioned in the documentation… It can be useful to switch between different sets of settings in Mu4e; a typical example is the case where you have different e-mail accounts for private and work email, each with their own values for folders, e-mail addresses, mailservers and so on. Personally I need to…

Custom Emacs functions No. 2 - Modules

Modules The module timu-bits.el in my Emacs configuration is the first to loaded after the init file. Why? It handles packages and the proper loading of all other modules. Commands and functions timu-bits-install-packages I quite like the way Emacs Prelude handles automatic package installation. This means of course stealing some code here. What I did not like was the fact that this is split into…

Custom Emacs functions No. 1 - Baseline

What for? An extensible, customizable, free/libre text editor […] What that means for most users – me included – is that you can make Emacs yours. And part of this is adding custom functions. This might be because there is a functionality missing or just because the builtin way of doing stuff doesn’t compute the same way my head does. You will be hard pressed to find an Emacs init.el…

Custom Emacs themes

Yet another Emacs theme? We are talking about GNU Emacs here. GNU software are “Supported by the Free Software Foundation ” and the FSF is a proponent of free software. Since one of the corner stones of free software is contribution I didn’t want to just consume Emacs. Now I am no wizard in writing Emacs Lisp. Far from it. However I wanted to create a few packages that might be…

Refactoring Emacs Lisp with ChatGPT

Why? Look… If you haven’t been living under a rock, you’ve probably noticed that ChatGPT is a hot topic on the internet. Rightfully so, if you ask me. This thing is amazing. I got no words. I am not going to explain it because I do not feel like I am the right person to do so. Just visit openai.com and see for yourself. However here are a few words from the devs: ChatGPT is…

Signature above the cited text in mu4e

Update 2024-03-10: With the update of Mu4e to 1.12.0 some functions/variables have been deprecated and/or changed. The fix to accommodate those changes can be seen in the following commit: https://gitlab.com/aimebertrand/dotemacs/-/commit/e11b484a9fad11baaaa629857e7ccafd5c8b31f0 Issue By default, when replying or forwarding an email, the signature is put at the end of the email body. This means…

Emacs, Hugo, GitLab and this Blog

EDIT - 2022-06-25: I got some notes on Reddit by the ox-hugo dev ( u/kaushalmodi ) regarding some information in this post. I would be remiss of course if i didn’t mention theme here. See the thread on Reddit . Objective Quite simple really. I want to write my blog and publish it without leaving Emacs . This post is my documentation – for me and whoever might be interested – of how I go…

Org capture from everywhere in macOS

Intro Capture lets you quickly store notes with little interruption of your work flow. Org’s method for capturing new items is heavily inspired by John Wiegley’s excellent Remember package. The Org Manual – 10.1 Capture Need I use Emacs for recording almost anything notes, stream of conscience, interesting tidbits from the internet, documentations, To-Dos & more. Which in turn means that I…

Using Emacs support for Xwidgets on macOS

Reason Let’s be honest as Emacs users. Sometimes a fully fledged browser experience or display of content is called for and – dare I say – superior. Be it for either displaying dynamic content, (moving) images, well designed websites and the sort. For that reason we sometimes need to go to a browser. This however means a possibly unwanted context switch and worse of all leaving Emacs. In…

Emacs and macOS like keybindings

Why would I do that? I use macOS – as evident by my domain. I started using it for university some 20 years ago and never looked back. This is also the case in my work life. As consequence of this I am quite committed to the macOS keybindings. So starting using Emacs about 2 years ago it was quite clear to me that… One, I can’t handle the default keybindings and especially key chords…

Setq vs customize-set-variable

Why this Listen… There is no lack of confusion about the proper way of setting variables in ones Emacs config. There are far more ways to set these than the two mentioned in the title, which does not make matters easier. set setq set-default customize-set-value customize-set-variable And probably more that I do not know about The question becomes: What is the best practice here? Most people…

Emacs config without use-package - an experiment

Motivation For this one I got inspired by someone else. A little while ago I saw a YouTube stream by System Crafters called Do we really need use-package in Emacs? . Since starting out with Emacs roughly 2 years ago, I have been using use-package . Probably because most of the resources that helped me to learn used it. I never questioned it. To be quite frank, I never had a reason to do. For me it…

Email setup in Emacs with Mu4e on macOS

UPDATE - 16. Jan. 2023: Recently I came across a behaviour in Mu4e that did not do what was expected. It turns out Mu4e was not selecting the proper from-address when composing emails, which I did not notice for a long time. The short of it is that the function used to send emails did not take into account the message-send-mail-hook , which is responsible to select the proper from-address. To fix…

My first Emacs package on Melpa

Why? I am greatly fond of Emacs as a tool, as evident by this post or this ones . In fact it is my favorite application/utility on any computer – by far. Because of this I want to contribute to the available packages. Now I am no wiz when it comes to programming, but I am tying to learn . So where to start? Make a package In my case it is a theme. Themes are easy to create. Plus I used quite a bit…