New answers tagged

0 votes

Can I redefine org-babel-execute for specific org-babel blocks?

Add plantuml to your languages in your init file: (org-babel-do-load-languages 'org-babel-load-languages '( ... (plantuml . t) ... )) Or add a require to your init file: (require 'ob-...
NickD's user avatar
  • 29.8k
0 votes

How to evaluate python code in org-mode when only python3 is provided by the package manager?

(use-package ob-python :custom (org-babel-python-command "python3")) #+begin_src emacs-lisp :exports results :results none (use-package ob-python :custom (org-babel-python-command "...
mxnt's user avatar
  • 686
1 vote
Accepted

How can I tangle all org-babel blocks under the current org-heading?

Thanks, NickD. (defun org-tangle-org-heading () (interactive) (org-narrow-to-subtree) (org-babel-tangle) (widen) )
Jason Hunter's user avatar
2 votes
Accepted

How to save org-mode file without results of source code block

Add this snippet of code to your init file. (defun my-results-remove-hook () (when (eq major-mode 'org-mode) (org-babel-remove-result))) (add-hook 'before-save-hook 'my-results-remove-hook) ...
Saravana's user avatar
  • 2,071

Top 50 recent answers are included