Remove pointlessly noisy description in header comment.
[emacs.d.git] / lisp / org-rc.el
blob64afe68375f984ff9f8721db59d5437142d54ef8
1 ;;; Simple rc to configure org.
3 (when (require 'org nil t)
4 ;; Goodbye latex preview droppings!
5 (setq org-latex-preview-ltxpng-directory "/tmp/org1000/")
7 ;; Execute these languages from an org-mode buffer.
8 (org-babel-do-load-languages
9 'org-babel-load-languages
10 `((scheme . t)
11 ;; "lisp" in this case strictly means Common Lisp.
12 (lisp . t)
13 ;; C in this case means both C++ and C. Confusingly, the only
14 ;; language specifiers recoginized by babble are C, C++ and
15 ;; cpp. The first of which doesn't do anything on my system(s),
16 ;; and the second of which does not have syntax
17 ;; highlighting. Only source blocks with the language specified
18 ;; as cpp behave as expected.
19 (C . t)
20 (perl . t)
21 (haskell . t)
22 (dot . t)
23 ;; ob-sparql does not (yet) come with org.
24 ,(when (locate-library "ob-sparql") '(sparql . t))))
26 (add-to-list 'org-src-lang-modes '("dot" . graphviz-dot))
27 (add-to-list 'org-src-lang-modes '("mathematica" . math))
29 ;; Convenience over safety.
30 (setq org-confirm-babel-evaluate nil)
32 ;; Make windmove work in org-mode, at uncertain cost.
33 (add-hook 'org-shiftup-final-hook 'windmove-up)
34 (add-hook 'org-shiftleft-final-hook 'windmove-left)
35 (add-hook 'org-shiftdown-final-hook 'windmove-down)
36 (add-hook 'org-shiftright-final-hook 'windmove-right)
38 (setq org-completion-use-ido t)
40 ;; org-plus-contrib also provides (only) org, but with contribs.
41 (when (package-installed-p 'org-plus-contrib)
42 (add-to-list 'load-path
43 (file-name-directory (locate-library "org-contribdir")))
45 ;; org-drill doesn't load it's dependencies.
46 (when (require 'cl nil t)
47 (require 'org-drill nil t))))