From 8679a006f9a74a1417d6a97b50ab9070e9886037 Mon Sep 17 00:00:00 2001 From: Ade Attwood Date: Mon, 10 Feb 2025 17:56:25 +0000 Subject: [PATCH] feat(emacs): enable ob for evaluating code blocks --- site-modules/core/files/emacs/init.el | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/site-modules/core/files/emacs/init.el b/site-modules/core/files/emacs/init.el index 8400557..a415598 100644 --- a/site-modules/core/files/emacs/init.el +++ b/site-modules/core/files/emacs/init.el @@ -91,6 +91,20 @@ just in in the current buffer." (require 'org-id) (require 'org-protocol) (require 'org-tempo) +(require 'ob) + +(use-package ob-nushell + :straight '(ob-nushell :type git :host github :repo "ln-nl/ob-nushell") + :config + (require 'ob-nushell) + (setq org-babel-nushell-command "~/.cargo/bin/nu" + ob-nushell-command-options "--error-style p") + + (org-babel-do-load-languages + 'org-babel-load-languages + '((emacs-lisp . t) ; Enable Emacs Lisp + (shell . t) + (nushell . t)))) (defun aa/org-roam-update-tasklist-tag () "Add or remove the 'tasklist' filetag based on the presence of TODO items in