From 5150ad453e5b28662c10d719012b6446e6d01ff1 Mon Sep 17 00:00:00 2001 From: Aryadev Chavali Date: Tue, 23 Sep 2025 23:21:34 +0100 Subject: Move all org-babel language loading to the org section --- Emacs/.config/emacs/config.org | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) diff --git a/Emacs/.config/emacs/config.org b/Emacs/.config/emacs/config.org index 257d7e0..21e7774 100644 --- a/Emacs/.config/emacs/config.org +++ b/Emacs/.config/emacs/config.org @@ -2988,9 +2988,6 @@ felt good. Doom Emacs was very helpful here. :defer t :init (setq org-adapt-indentation nil - org-babel-load-languages '((emacs-lisp . t) - (lisp . t) - (shell . t)) org-bookmark-names-plist nil org-directory "~/Text/" org-edit-src-content-indentation 0 @@ -3020,7 +3017,14 @@ felt good. Doom Emacs was very helpful here. org-tags-column 0 org-todo-keywords '((sequence "TODO" "WIP" "DONE") (sequence "PROJ" "WAIT" "COMPLETE")) - org-use-sub-superscripts '{})) + org-use-sub-superscripts '{}) + :config + (org-babel-do-load-languages + 'org-babel-load-languages + '((emacs-lisp . t) + (lisp . t) + (shell . t) + (python . t)))) #+end_src *** Org Functionality Hooks, prettify-symbols and records for auto insertion. @@ -3456,18 +3460,6 @@ on your machine. (clang-format-region (region-beginning) (region-end)) (clang-format-buffer)))) #+end_src -*** cc org babel -To ensure org-babel executes language blocks of C/C++, I need to load -it as an option in ~org-babel-load-languages~. - -#+begin_src emacs-lisp -(use-package org - :after cc-mode - :init - (org-babel-do-load-languages - 'org-babel-load-languages - '((C . t)))) -#+end_src *** cc compile fsan Sanitisers are a blessing for C/C++. An additional runtime on top of the executable which catches stuff like undefined behaviour or memory -- cgit v1.2.3-13-gbd6f