aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init/oni-org-init.org
blob: 36f7be339094507fa49d7bad0dd05b37b4559218 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#+TITLE: Org mode configuration

#+BEGIN_SRC emacs-lisp
  (require 'org)
  (require 'org-capture)
#+END_SRC

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

#+BEGIN_SRC emacs-lisp
  (setq org-src-fontify-natively t)
#+END_SRC

Pressing RET on a link should really follow that link.

#+BEGIN_SRC emacs-lisp
  (setq org-return-follows-link t)
#+END_SRC

Enable automatic text filling for org-mode.

#+BEGIN_SRC emacs-lisp
  (add-hook 'org-mode-hook 'auto-fill-mode)
#+END_SRC

* Org protocol

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

  #+BEGIN_SRC emacs-lisp
    (require 'org-protocol)
  #+END_SRC

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

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