3

Try the following functions. Below it's your function adapted to split top level headlines into different Org files. (defun my-org-export-each-level-1-headline-to-org (&optional scope) (interactive) (org-map-entries (lambda () (let* ((title (car (last (org-get-outline-path t)))) (dir (file-name-directory buffer-file-name)) ...


2

I think what you are looking for is related to the library of babel. In this example, I construct something similar to the babel-call org element and use it to get the info needed for org-babel-execute-src-block to execute it with the argument. #+name: main | x | 1 | a | | value | 2 | b | #+NAME: ref #+BEGIN_SRC emacs-lisp :var name="" table=...


2

(setq org-confirm-shell-link-function nil) But: Shell links can be dangerous: just think about a link [[shell:rm -rf ~/*][Google Search]] This link would show up in your Org document as "Google Search", but really it would remove your entire home directory. Therefore we advise against setting this variable to nil. Just change it to ‘y-or-n-p’ if ...


2

This works for me: #+BEGIN: clocktable :scope org-agenda-files :tstart "<2021-07-01 Thu>" :tend "<2021-07-25 Sun>" :maxlevel 8 :hidefiles t :fileskip0 t :link t Looks like you should write "<2021-07-25"> instead of "<2021-7-25">. (P.S. no :block needed). Cf. C-h f org-parse-time-string and C-h ...


1

You will need to enable the #+BIND keyword by adding this to your init file and restarting emacs (setq org-export-allow-org-bind-keywords t) You can also customize this variable (which allows you to skip the restart). Then you can assign to export-related variables even if there is no option for them (as in this case), by adding the following header to your ...


1

Try this function: (defun my/org-export-headline (&optional backend async subtreep visible-only body-only ext-plist) "Export the current Org headline using BACKEND. The available backends are the ones of `org-export-backends' and 'pdf. When optional argument SUBTREEP is non-nil, transcode the sub-tree at point, extracting information from the ...


1

This seems to give the expected result for me: (defun custom-org-fill () (interactive) (save-excursion (org-with-wide-buffer (cl-loop for el in (reverse (org-element-map (org-element-parse-buffer) '(paragraph quote-block item) #'identity)) do (goto-char (org-element-property :contents-begin el)) ...


Only top voted, non community-wiki answers of a minimum length are eligible