aboutsummaryrefslogtreecommitdiffstats
path: root/emacs/.emacs.d/init/oni-org-init.org
blob: c72601f188cf99110d2b23358268b39655269c7b (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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
#+TITLE: Org mode configuration
#+STARTUP: content

#+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

* 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.

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

** Enable bullets in Org mode

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

   #+BEGIN_SRC emacs-lisp
     (add-hook 'org-mode-hook 'org-bullets-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