Add org babel config.

This commit is contained in:
KJ 2024-04-21 19:20:54 -04:00
parent d22f24ad4b
commit d588a9ed2e

View File

@ -75,6 +75,25 @@
;; (push '("#+begin_example" . "🦉" ) prettify-symbols-alist) ;; (push '("#+begin_example" . "🦉" ) prettify-symbols-alist)
;; (push '("#+end_example" . "⎯" ) prettify-symbols-alist) ;; (push '("#+end_example" . "⎯" ) prettify-symbols-alist)
(prettify-symbols-mode) (prettify-symbols-mode)
;; Habilitar evaluación de lenguajes en org-mode (babel)
(org-babel-do-load-languages 'org-babel-load-languages
(append org-babel-load-languages
'(
(C . t)
(R . t)
(awk . t)
(clojure . t)
(go . t)
(haskell . t)
(java . t)
(js . t)
(php . t)
(python . t)
(rust . t)
(translate . t)
(sh . t)
)))
) )
;; org-mode ;; org-mode
@ -217,6 +236,26 @@
:ensure t :ensure t
:hook (org-mode . org-autolist-mode)) :hook (org-mode . org-autolist-mode))
;; Org babel para PHP
(use-package ob-php
:defer t
:ensure t)
;; Org babel para GO
(use-package ob-go
:defer t
:ensure t)
;; Org babel para Rust
(use-package ob-rust
:defer t
:ensure t)
;; Org babel para traducciones (mediante google translate)
(use-package ob-translate
:defer t
:ensure t)
;; Org mode en modo presentación ;; Org mode en modo presentación
(use-package org-present (use-package org-present
:defer t :defer t