dotfiles/emacs/.emacs.d/init/oni-org-init.org

1.4 KiB

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)

Bullets

Show pretty bullets instead of the default asterisk characters.

Load the contrib module

Org bullets isn't loaded when Org mode is by default, so I should do that here.

  (require 'org-bullets)

Enable bullets in Org mode

Enable org-bullets-mode whenever org-mode starts.

  (add-hook 'org-mode-hook 'org-bullets-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))