December 25, 2015

Notmuch and Addressbook handling

I always had a problem with managing my email contacts, not because I'm lazy, but because tooling for that was/is really crude. In most cases (actually, in all cases AFAIK) I'd have to do it manually, by marking target address so the mail client knows what to store or do the hard work, open addressbook editor and fill necessary details.

For example, in Mutt (which I used before) I'd have to press 'a' on desired address to be added on Mutt alias list. In Thunderbird, it is a totally different story: there are two contact lists - one you manually manage and the other is populated by Thunderbird by reading your recipient list.

The problem with all of these approaches is that I'd have to think in advance if a particular email address is important for me, so I can do appropriate steps and save it. Of course, Thunderbird's Collected addresses can help here, but will not work unless you send an email.

Continue reading →

October 21, 2015

evil-mode and xml folding

Recently I went back to Maven's pom.xml editing and still can't get that nice warm feeling with Eclipse. Yet.

So, I was thinking, why not fire up Emacs (with evil-mode of course) and reuse all that folding goodness we get out of the box.

The thing is, Emacs does not support xml folding out of the box, but thanks to this awesome tip from Jordon Biondo, you can easily add it. Here is a little bit improved version:

Continue reading →

September 15, 2015

Emacs as default file manager in EDE

Just stumbled on this really neat post on how to setup Emacs as default file manager in Ubuntu. So, why we don't do the same in EDE?

First create a script named dired and save it in known place, e.g. your $HOME folder, with this content (I found it here):

#!/bin/bash
emacsclient --eval "(dired \"${1:-~}\")"
Continue reading →