mirror of
https://github.com/correl/dotfiles.git
synced 2024-11-16 11:09:29 +00:00
[emacs] Fix org-babel aliases
This commit is contained in:
parent
52eefec10c
commit
52fad5b38d
1 changed files with 5 additions and 4 deletions
|
@ -144,14 +144,15 @@
|
|||
(let ((language-table (cddr '<<org-babel-languages()>>)))
|
||||
(mapcar (lambda (lang-pair)
|
||||
(let* ((alias (if (not (string= (cadr lang-pair) "")) (cadr lang-pair)))
|
||||
(lang (if alias (make-symbol alias) (make-symbol (car lang-pair))))
|
||||
(lang (make-symbol (car lang-pair)))
|
||||
(lang-or-alias (if alias (make-symbol alias) lang))
|
||||
(confirm (not (string= (cl-caddr lang-pair) "No"))))
|
||||
(if alias
|
||||
(add-to-list 'my/org-src-lang-modes (cons alias lang)))
|
||||
(if (not confirm)
|
||||
(add-to-list 'my/org-babel-no-confirm-languages lang))
|
||||
(add-to-list 'my/org-babel-evaluated-languages lang)
|
||||
lang))
|
||||
(add-to-list 'my/org-babel-no-confirm-languages lang-or-alias))
|
||||
(add-to-list 'my/org-babel-evaluated-languages lang-or-alias)
|
||||
lang-or-alias))
|
||||
language-table))
|
||||
|
||||
(mapcar (lambda (alias)
|
||||
|
|
Loading…
Reference in a new issue