[Org] Move (small) Babel config to init.el

This commit is contained in:
Daniel - 2018-11-03 11:18:40 +01:00
parent d82d1550c6
commit f510d73ae7
Signed by: dbo
GPG Key ID: 4F63DB96D45AA9C6
2 changed files with 10 additions and 7 deletions

11
init.el
View File

@ -658,7 +658,8 @@ _h_ _l_ _o_k _y_ank
db/org-agenda-list-deadlines
db/org-agenda-skip-tag
db/cmp-date-property
hydra-org-agenda-view/body))
hydra-org-agenda-view/body
org-babel-execute:hy))
(use-package org
:commands (org-capture
@ -1020,6 +1021,14 @@ _h_ _l_ _o_k _y_ank
(add-hook 'org-agenda-mode-hook #'hl-line-mode 'append)))
;; Babel
(use-package ob-core
:defer t
:init (setq org-export-use-babel nil)
:config (setf (alist-get :results org-babel-default-header-args)
"output code replace"))
(use-package ox-icalendar
:commands (org-icalendar-combine-agenda-files)
:init (setq org-icalendar-include-body nil

View File

@ -482,12 +482,6 @@ Current Task: %`org-clock-current-task; "
;;; Babel
(use-package ob-core
:defer t
:init (setq org-export-use-babel nil)
:config (setf (alist-get :results org-babel-default-header-args)
"output code replace"))
(defun org-babel-execute:hy (body params)
;; http://kitchingroup.cheme.cmu.edu/blog/2016/03/30/OMG-A-Lisp-that-runs-python/
"Execute hy code BODY with parameters PARAMS."