April 3, 2018

Emacs, git, gpg and 'failed to sign the data'

I'm not sure is this (un)common case, but when I used git with signing commits from Emacs with VC or Magit, I was getting this:

error: gpg failed to sign the data
fatal: failed to write commit object

Curiously, many had similar problem, but not from Emacs which is my case. On other hand, git signing from terminal worked without any problems for me.

Continue reading →

March 2, 2018

Extending org-mode Easy Templates

I frequently use org-mode Easy Templates and I noticed I often miss shortcut for comment block (BEGIN_COMMENT/END_COMMENT) which is very useful from time to time.

Let's add that feature.

(add-to-list 'org-structure-template-alist
             '("C" "#+BEGIN_COMMENT\n?\n#+END_COMMENT" ""))
Continue reading →

December 1, 2017

Distraction-free EWW surfing

Sometimes when I plan to read a longish html text, I fire up EWW, a small web browser that comes with Emacs.

However, reading pages on larger monitor doesn't provide good experience, at least not for me. Here is an example:

eww-non-readable

Continue reading →