From c73e060af85edae622f62756fa06fbacd1f6eea0 Mon Sep 17 00:00:00 2001 From: laurensmiers Date: Mon, 12 Feb 2018 12:39:40 +0100 Subject: [PATCH] Add ditaa to languages that are allowed to run inside org-mode --- README.md | 1 + custom/setup-org.el | 10 ++++++++++ 2 files changed, 11 insertions(+) diff --git a/README.md b/README.md index d16d58c..89897d5 100644 --- a/README.md +++ b/README.md @@ -9,5 +9,6 @@ This configuration requires the installation of : - cmake (for ivory) - llvm-libs (for cmake, somehow not a dependency on Manjaro when installing cmake) - Use python-pip to install jedi, flake8, importmagic and autopep8 (for elpy) + - ditaa (for ascii to image generation in org-mode) When first checking out this config, run irony-install-server to make and install the irony-server. diff --git a/custom/setup-org.el b/custom/setup-org.el index cdd13a1..1a448e6 100644 --- a/custom/setup-org.el +++ b/custom/setup-org.el @@ -1,4 +1,5 @@ (require 'org) + (define-key global-map "\C-cl" 'org-store-link) (define-key global-map "\C-ca" 'org-agenda) @@ -15,4 +16,13 @@ ;; Preserve indentation in SRC blocks (setq org-src-preserve-indentation t) +;; Specify which languages are allowed to run inside org-mode +(org-babel-do-load-languages + 'org-babel-load-languages '( + (ditaa . t)) + ) + +;; Tell org where to look for ditaa +(setq org-ditaa-jar-path "/usr/share/java/ditaa/ditaa-0_10.jar") + (provide 'setup-org)