dotfiles/emacs/.emacs.d/init/oni-org-init.org
2016-11-24 21:45:37 +01:00

964 B

Org mode configuration

  (require 'org)
  (require 'org-capture)

Tell org-mode to fontify code blocks in their specified languages.

  (setq org-src-fontify-natively t)

Pressing RET on a link should really follow that link.

  (setq org-return-follows-link t)

Enable automatic text filling for org-mode.

  (add-hook 'org-mode-hook 'auto-fill-mode)

Org protocol

Load org-protocol to let external applications add information to org.

  (require 'org-protocol)

This template is used by Conkeror to capture a bookmark into my bookmarks file.

  (add-to-list 'org-capture-templates
               '("b" "Bookmark" entry (file "~/documents/org/bookmarks.org")
                 "* %c\n\n  %i"
                 :empty-lines 1))