Port most of org-mode setup.