emacs

Some notes regarding my emacs usage. Mostly for my future self, but if you find anything useful feel free to take it!

Including dot diagrams with org-babel

#+BEGIN_SRC dot :file diagram.png
digraph G {
        main -> parse -> execute;
        main -> init;
        main -> cleanup;
        execute -> make_string;
        execute -> printf
        init -> make_string;
        main -> printf;
        execute -> compare;
}
#+END_SRC

Setting default git-link remote

On any given repo:

git config --local --add git-link.remote <default-remote>

This will make C-c g l choose this remote by default. It's possible to choose what remote to use interactively by using the universal argument: C-u C-c g l.