2016-10-29 16:38:44 +02:00
|
|
|
#+TITLE: Org mode configuration
|
|
|
|
|
2016-11-02 11:47:17 +01:00
|
|
|
#+BEGIN_SRC emacs-lisp
|
|
|
|
(require 'org)
|
2016-11-24 21:45:37 +01:00
|
|
|
(require 'org-capture)
|
2016-11-02 11:47:17 +01:00
|
|
|
#+END_SRC
|
|
|
|
|
2016-10-29 16:38:44 +02:00
|
|
|
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
|
2016-11-24 21:45:37 +01:00
|
|
|
|
|
|
|
* 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
|