-
Notifications
You must be signed in to change notification settings - Fork 5
/
compile.el
26 lines (23 loc) · 848 Bytes
/
compile.el
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
;; -*- lexical-binding: t; -*-
(require 'org)
(require 'ob-core)
(defun visit-execute-src-block (&rest names)
"Visit and execute source blocks denoted by NAMES."
(mapc #'(lambda (block-name)
(org-babel-goto-named-src-block block-name)
(org-babel-execute-src-block))
names))
(let ((org-confirm-babel-evaluate nil))
(org-babel-do-load-languages 'org-babel-load-languages '((emacs-lisp . t)
(shell . t)))
(with-current-buffer (find-file-noselect "supermemo-wine.org")
(visit-execute-src-block "installer template paths" "smglobe base64")
(org-babel-tangle)
(visit-execute-src-block "elisp utilities"
"installer for sm9"
"installer for sm12"
"installer for sm15.4"
"installer for sm15"
"installer for sm16"
"installer for sm17"
"installer for sm18")))